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

Diff for /src/usr.bin/htpasswd/htpasswd.c between version 1.16 and 1.17

version 1.16, 2017/06/07 09:11:52 version 1.17, 2018/10/31 07:39:10
Line 57 
Line 57 
         ssize_t linelen;          ssize_t linelen;
         mode_t old_umask;          mode_t old_umask;
   
         if (pledge("stdio rpath wpath cpath flock tmppath tty", NULL) == -1)  
                 err(1, "pledge");  
   
         while ((c = getopt(argc, argv, "I")) != -1) {          while ((c = getopt(argc, argv, "I")) != -1) {
                 switch (c) {                  switch (c) {
                 case 'I':                  case 'I':
Line 74 
Line 71 
   
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
   
           if ((batch && argc == 1) || (!batch && argc == 2)) {
                   if (unveil(argv[0], "rwc") == -1)
                           err(1, "unveil");
                   if (unveil("/tmp", "rwc") == -1)
                           err(1, "unveil");
           }
           if (pledge("stdio rpath wpath cpath flock tmppath tty", NULL) == -1)
                   err(1, "pledge");
   
         if (batch) {          if (batch) {
                 if (argc == 1)                  if (argc == 1)

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17