[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/main.c between version 1.138 and 1.139

version 1.138, 2021/07/14 13:33:57 version 1.139, 2023/11/09 18:18:59
Line 617 
Line 617 
                 if (isurl(argv[0])) {                  if (isurl(argv[0])) {
                         if (pipeout) {                          if (pipeout) {
 #ifndef SMALL  #ifndef SMALL
                               if (!resume) {
                                 if (pledge("stdio rpath dns tty inet proc exec fattr",                                  if (pledge("stdio rpath dns tty inet proc exec fattr",
                                     NULL) == -1)                                      NULL) == -1)
                                         err(1, "pledge");                                          err(1, "pledge");
 #else                              } else
   #endif /* !SMALL */
                                 if (pledge("stdio rpath dns tty inet fattr",                                  if (pledge("stdio rpath dns tty inet fattr",
                                     NULL) == -1)                                      NULL) == -1)
                                         err(1, "pledge");                                          err(1, "pledge");
 #endif  
                         } else {                          } else {
 #ifndef SMALL  #ifndef SMALL
                               if (!resume) {
                                 if (pledge("stdio rpath wpath cpath dns tty inet proc exec fattr",                                  if (pledge("stdio rpath wpath cpath dns tty inet proc exec fattr",
                                     NULL) == -1)                                      NULL) == -1)
                                         err(1, "pledge");                                          err(1, "pledge");
 #else                              } else
   #endif /* !SMALL */
                                 if (pledge("stdio rpath wpath cpath dns tty inet fattr",                                  if (pledge("stdio rpath wpath cpath dns tty inet fattr",
                                     NULL) == -1)                                      NULL) == -1)
                                         err(1, "pledge");                                          err(1, "pledge");
 #endif  
                         }                          }
   
                         rval = auto_fetch(argc, argv, outfile);                          rval = auto_fetch(argc, argv, outfile);

Legend:
Removed from v.1.138  
changed lines
  Added in v.1.139