apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/user/unix userinfo.c
Date Sun, 28 Jan 2001 23:45:57 GMT
wrowe       01/01/28 15:45:57

  Modified:    .        CHANGES
               user/unix userinfo.c
  Log:
    Moving a small OS2'ism into APR, it's pw_dir excludes the username.
    Return the expected result.  Also noted the headers/os2errno changes
    from early this morning.
  
  Revision  Changes    Path
  1.63      +10 -0     httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- CHANGES	2001/01/28 07:41:15	1.62
  +++ CHANGES	2001/01/28 23:45:56	1.63
  @@ -1,5 +1,15 @@
   Changes with Apache 2.0b1
   
  +  *) Corrected an OS2'ism of apr_get_home_directory.  OS2 now returns the
  +     proper directory, including the user's name.
  +
  +  *) Removed private os2errno.h and integrated the OS2 network error codes
  +     into apr_errno.h for optimized error tests (APR_STATUS_IS_EFOO(rv)).
  +     [William Rowe]
  +
  +  *) Moved inclusion of <os2.h> header from multiple modules into apr.h
  +     [William Rowe]
  +
     *) Replace configure --with-optim option by using and saving the
        environment variable OPTIM instead.  This is needed because configure
        options do not support multiple flags separated by spaces.
  
  
  
  1.6       +5 -0      apr/user/unix/userinfo.c
  
  Index: userinfo.c
  ===================================================================
  RCS file: /home/cvs/apr/user/unix/userinfo.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- userinfo.c	2001/01/28 00:29:19	1.5
  +++ userinfo.c	2001/01/28 23:45:57	1.6
  @@ -76,7 +76,12 @@
   #endif
           return errno;
       }
  +#ifdef OS2
  +    /* Need to manually add user name for OS/2 */
  +    *dirname = apr_pstrcat(p, pw->pw_dir, pw->pw_name, NULL);
  +#else
       *dirname = apr_pstrdup(p, pw->pw_dir);
  +#endif
       return APR_SUCCESS;
   }
   
  
  
  

Mime
View raw message