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

Diff for /src/usr.bin/sudo/Attic/find_path.c between version 1.1 and 1.2

version 1.1, 1999/11/18 16:29:01 version 1.2, 2000/01/28 01:10:20
Line 64 
Line 64 
 #endif /* !STDC_HEADERS */  #endif /* !STDC_HEADERS */
   
 #ifndef lint  #ifndef lint
 static const char rcsid[] = "$Sudo: find_path.c,v 1.94 1999/10/07 21:20:57 millert Exp $";  static const char rcsid[] = "$Sudo: find_path.c,v 1.95 2000/01/27 04:31:58 millert Exp $";
 #endif /* lint */  #endif /* lint */
   
 /*  /*
Line 108 
Line 108 
      * Grab PATH out of the environment (or from the string table       * Grab PATH out of the environment (or from the string table
      * if SECURE_PATH is in effect) and make a local copy.       * if SECURE_PATH is in effect) and make a local copy.
      */       */
     if (def_str(I_SECURE_PATH))      if (def_str(I_SECURE_PATH) && !user_is_exempt())
         path = def_str(I_SECURE_PATH);          path = def_str(I_SECURE_PATH);
     else if ((path = getenv("PATH")) == NULL)      else if ((path = getenv("PATH")) == NULL)
         return(NOT_FOUND);          return(NOT_FOUND);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2