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

Diff for /src/usr.bin/ssh/Attic/minfd.c between version 1.1 and 1.2

version 1.1, 1999/09/26 20:53:36 version 1.2, 1999/09/30 05:43:33
Line 19 
Line 19 
 #include "fdlim.h"  #include "fdlim.h"
 #include "minfd.h"  #include "minfd.h"
   
 #ifdef _PATH_BSHELL  
 #define DEFAULT_SHELL           _PATH_BSHELL  
 #else  
 #define DEFAULT_SHELL           "/bin/sh"  
 #endif  
   
 static int  static int
 _get_permanent_fd(const char *shellpath)  _get_permanent_fd(const char *shellpath)
 {  {
Line 43 
Line 37 
         if ((pwd = getpwuid(getuid())))          if ((pwd = getpwuid(getuid())))
           shellpath = pwd->pw_shell;            shellpath = pwd->pw_shell;
       if (!shellpath)        if (!shellpath)
         shellpath = DEFAULT_SHELL;          shellpath = _PATH_BSHELL;
     }      }
   if ((shell = strrchr(shellpath, '/')))    if ((shell = strrchr(shellpath, '/')))
     shell++;      shell++;

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