[BusyBox-cvs] CVS busybox/libbb

CVS User andersen andersen at codepoet.org
Fri Oct 8 08:07:41 UTC 2004


Update of /var/cvs/busybox/libbb
In directory nail:/tmp/cvs-serv9851/libbb

Modified Files:
	my_getpwuid.c my_getug.c 
Log Message:
Tito writes:

Hi to all,
This patch contains just some fixes for some misleading
comments in my_getpwuid.c and my_getug.c.
The code is untouched so this patch will not
cause troubles.

Please apply.

Thanks in advance and Ciao,
Tito



--- /var/cvs/busybox/libbb/my_getpwuid.c	2004/09/15 03:04:08	1.10
+++ /var/cvs/busybox/libbb/my_getpwuid.c	2004/10/08 08:07:40	1.11
@@ -22,15 +22,15 @@
  /* Hacked by Tito Ragusa (c) 2004 <farmatito at tiscali.it> to make it more
   * flexible :
   *
-  * if bufsize is > 0 char *user can not be set to NULL.
-  *                   On success username is written on static allocated buffer name 
+  * if bufsize is > 0 char *name can not be set to NULL.
+  *                   On success username is written on the static allocated buffer name 
   *                   (and a pointer to it is returned).
-  *                   On failure uid as string is written to static allocated buffer name
+  *                   On failure uid as string is written to the static allocated buffer name
   *                   and NULL is returned.
-  * if bufsize is = 0 char *user can be set to NULL.
+  * if bufsize is = 0 char *name can be set to NULL.
   *                   On success username is returned. 
   *                   On failure NULL is returned.
-  * if bufsize is < 0 char *user can be set to NULL
+  * if bufsize is < 0 char *name can be set to NULL
   *                   On success username is returned.
   *                   On failure an error message is printed and the program exits.   
   */
--- /var/cvs/busybox/libbb/my_getug.c	2004/09/15 03:04:08	1.1
+++ /var/cvs/busybox/libbb/my_getug.c	2004/10/08 08:07:40	1.2
@@ -21,17 +21,17 @@
 
  /* 
   *
-  * if bufsize is > 0 char *idname can not be set to NULL.
-  *                   On success idname is written on static allocated buffer 
+  * if bufsize is > 0 char *buffer can not be set to NULL.
+  *                   If idname is not NULL it is written on the static allocated buffer 
   *                   (and a pointer to it is returned).
-  *                   On failure uid or gid as string is written to static allocated buffer
+  *                   if idname is NULL, id as string is written to the static allocated buffer
   *                   and NULL is returned.
-  * if bufsize is = 0 char *idname can be set to NULL.
-  *                   On success idname is returned. 
-  *                   On failure NULL is returned.
-  * if bufsize is < 0 char *idname can be set to NULL.
-  *                   On success idname is returned.
-  *                   On failure an error message is printed and the program exits.   
+  * if bufsize is = 0 char *buffer can be set to NULL.
+  *                   If idname exists a pointer to it is returned,
+  *                   else NULL is returned.
+  * if bufsize is < 0 char *buffer can be set to NULL.
+  *                   If idname exists a pointer to it is returned,
+  *                   else an error message is printed and the program exits.   
   */
   
 #include <stdio.h>



More information about the busybox-cvs mailing list