main.c (17261) | main.c (21149) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 68 unchanged lines hidden (view full) --- 77 78int 79main(argc, argv) 80 int argc; 81 char *argv[]; 82{ 83 int ch; 84 ino_t ino; | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 68 unchanged lines hidden (view full) --- 77 78int 79main(argc, argv) 80 int argc; 81 char *argv[]; 82{ 83 int ch; 84 ino_t ino; |
85 char *inputdev = _PATH_DEFTAPE; | 85 char *inputdev; |
86 char *symtbl = "./restoresymtable"; 87 char *p, name[MAXPATHLEN]; 88 | 86 char *symtbl = "./restoresymtable"; 87 char *p, name[MAXPATHLEN]; 88 |
89 /* Temp files should *not* be readable. We set permissions later. */ 90 (void) umask(077); 91 |
|
89 if (argc < 2) 90 usage(); 91 | 92 if (argc < 2) 93 usage(); 94 |
95 if ((inputdev = getenv("TAPE")) == NULL) 96 inputdev = _PATH_DEFTAPE; |
|
92 obsolete(&argc, &argv); 93 while ((ch = getopt(argc, argv, "b:cdf:himNRrs:tvxy")) != EOF) 94 switch(ch) { 95 case 'b': 96 /* Change default tape blocksize. */ 97 bflag = 1; 98 ntrec = strtol(optarg, &p, 10); 99 if (*p) --- 248 unchanged lines hidden --- | 97 obsolete(&argc, &argv); 98 while ((ch = getopt(argc, argv, "b:cdf:himNRrs:tvxy")) != EOF) 99 switch(ch) { 100 case 'b': 101 /* Change default tape blocksize. */ 102 bflag = 1; 103 ntrec = strtol(optarg, &p, 10); 104 if (*p) --- 248 unchanged lines hidden --- |