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

Diff for /src/usr.bin/ssh/Attic/tildexpand.c between version 1.6.2.4 and 1.7

version 1.6.2.4, 2001/03/21 18:53:18 version 1.7, 2000/06/20 01:39:45
Line 2 
Line 2 
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved   *                    All rights reserved
  *   * Created: Wed Jul 12 01:07:36 1995 ylo
  * As far as I am concerned, the code I have written for this software  
  * can be used freely for any purpose.  Any derived versions of this  
  * software must be clearly marked as such, and if the derived work is  
  * incompatible with the protocol description in the RFC file, it must be  
  * called by a name other than "ssh" or "Secure Shell".  
  */   */
   
 #include "includes.h"  #include "includes.h"
 RCSID("$OpenBSD$");  RCSID("$OpenBSD$");
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "log.h"  #include "ssh.h"
 #include "tildexpand.h"  
   
 /*  /*
  * Expands tildes in the file name.  Returns data allocated by xmalloc.   * Expands tildes in the file name.  Returns data allocated by xmalloc.
Line 25 
Line 19 
 tilde_expand_filename(const char *filename, uid_t my_uid)  tilde_expand_filename(const char *filename, uid_t my_uid)
 {  {
         const char *cp;          const char *cp;
         u_int userlen;          unsigned int userlen;
         char *expanded;          char *expanded;
         struct passwd *pw;          struct passwd *pw;
         char user[100];          char user[100];

Legend:
Removed from v.1.6.2.4  
changed lines
  Added in v.1.7