[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.103 and 1.104

version 1.103, 2015/10/16 05:35:19 version 1.104, 2015/10/18 03:39:37
Line 444 
Line 444 
                 if (isurl(argv[0])) {                  if (isurl(argv[0])) {
                         if (pipeout) {                          if (pipeout) {
 #ifndef SMALL  #ifndef SMALL
                                 if (pledge("stdio rpath tty inet fattr",                                  if (pledge("stdio rpath dns tty inet fattr",
                                     NULL) == -1)                                      NULL) == -1)
                                         err(1, "pledge");                                          err(1, "pledge");
 #else  #else
                                 if (pledge("stdio rpath 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");
 #endif  #endif
                         } else {                          } else {
 #ifndef SMALL  #ifndef SMALL
                                 if (pledge("stdio rpath wpath cpath tty inet fattr",                                  if (pledge("stdio rpath wpath cpath dns tty inet fattr",
                                     NULL) == -1)                                      NULL) == -1)
                                         err(1, "pledge");                                          err(1, "pledge");
 #else  #else
                                 if (pledge("stdio rpath wpath cpath 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");
 #endif  #endif

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104