<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/include, branch 1_00</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=1_00</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=1_00'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2004-09-15T03:04:08+00:00</updated>
<entry>
<title>Tito writes,</title>
<updated>2004-09-15T03:04:08+00:00</updated>
<author>
<name>Glenn L McGrath</name>
<email>bug1@ihug.co.nz</email>
</author>
<published>2004-09-15T03:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f15dfc557048ca28c8b71ecbcfb9b8f229f2e2e0'/>
<id>urn:sha1:f15dfc557048ca28c8b71ecbcfb9b8f229f2e2e0</id>
<content type='text'>
"This patch fixes all the bugs in id previously spotted by vodz and me.
The binary size increased a bit,  but now it should work as expected."
</content>
</entry>
<entry>
<title>Patch from Felipe Kellermann, adds missing applet usage options, removes usage</title>
<updated>2004-09-14T16:23:56+00:00</updated>
<author>
<name>Glenn L McGrath</name>
<email>bug1@ihug.co.nz</email>
</author>
<published>2004-09-14T16:23:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ab1955c2367d18e25fde1791a2660ae69976c623'/>
<id>urn:sha1:ab1955c2367d18e25fde1791a2660ae69976c623</id>
<content type='text'>
for options that are currently not implemented and fixes typos.
</content>
</entry>
<entry>
<title>Tito writes:</title>
<updated>2004-09-02T22:22:17+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-09-02T22:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=192c35f6eb2bb85e28c697a45c7d80a43ec6e743'/>
<id>urn:sha1:192c35f6eb2bb85e28c697a45c7d80a43ec6e743</id>
<content type='text'>
The second patch contains:
1) a size optimization for adduser.c
2) removes a warning about an unused variable in syslogd.c if CONFIG_FEATURE_REMOTE_LOG is not set
3)cosmetic fixes for addgroup_full_usage and adduser_full_usage

Ciao,
Tito
</content>
</entry>
<entry>
<title>Tito writes:</title>
<updated>2004-09-02T22:21:41+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-09-02T22:21:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7eb79fff10915afc4d561a65e54851efa869db89'/>
<id>urn:sha1:7eb79fff10915afc4d561a65e54851efa869db89</id>
<content type='text'>
Hi Erik,
Hi to all,
This is part five of the my_get*id story.
I've tweaked a bit this two functions to make them more flexible,
but this changes will not affect existing code.
Now they work so:
1) my_getpwuid( char *user, uid_t uid, int bufsize)

   if bufsize is &gt; 0 char *user cannot be set to NULL
                     on success username is written on static allocated buffer
                     on failure uid as string is written to buffer and NULL is returned
   if bufsize is = 0 char *user can be set to NULL
                     on success username is returned
                     on failure NULL is returned
   if bufsize is &lt; 0 char *user can be set to NULL
                     on success username is returned
                     on failure an error message is printed and the program exits

  2) 1) my_getgrgid( char *group, uid_t uid, int bufsize)

   if bufsize is &gt; 0 char *group cannot be set to NULL
                     on success groupname is written on static allocated buffer
                     on failure gid as string is written to buffer and NULL is returned
   if bufsize is = 0 char *group can be set to NULL
                     on success groupname is returned
                     on failure NULL is returned
   if bufsize is &lt; 0 char *group can be set to nULL
                     on success groupname is returned
                     on failure an error message is printed and the program exits

This changes were needed mainly for my new id applet.
It is somewhat bigger then the previous but matches the behaviour of GNU id
and is capable to handle usernames of whatever length.
BTW: at a first look it seems to me that it will integrate well (with just a few changes)
with the pending patch  in patches/id_groups_alias.patch.
The increase in size is balanced by the removal of my_getpwnamegid.c
from libbb as this was used only in previous id applet and by size optimizations
made possible in whoami.c and in passwd.c.
I know that we are in feature freeze but I think that i've tested it enough
(at least I hope so.......).
</content>
</entry>
<entry>
<title>The login applet should always be setuid root</title>
<updated>2004-08-26T23:01:34+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-26T23:01:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=37ba6bfb6d7ff7287ecda14bb4906fa6de1e78c9'/>
<id>urn:sha1:37ba6bfb6d7ff7287ecda14bb4906fa6de1e78c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tito writes:</title>
<updated>2004-08-26T22:18:59+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-26T22:18:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=52499cb9ae01a67187c65ea43a48140b147968cf'/>
<id>urn:sha1:52499cb9ae01a67187c65ea43a48140b147968cf</id>
<content type='text'>
Hi,
I've spent the half night staring at the devilish  my_getpwuid and my_getgrgid functions
trying to find out a way to avoid actual and future potential buffer overflow problems
without breaking existing code.
Finally I've  found a not intrusive way to do this that surely doesn't break existing code
and fixes a couple of problems too.
The attached patch:
1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows
2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h.
3) The behaviour of tar, ls and  logger is unchanged.
4) The behavior of ps with somewhat longer usernames messing up output is fixed.
5) The only bigger change was the increasing of size of the buffers in id.c to avoid
     false negatives (unknown user: xxxxxx) with usernames longer than 8 chars.
     The value i used ( 32 chars ) was taken from the tar header ( see gname and uname).
     Maybe this buffers can be reduced a bit  ( to 16 or whatever ), this is up to you.
6) The increase of size of the binary is not so dramatic:
     size busybox
       text    data     bss     dec     hex filename
     239568    2300   36816  278684   4409c busybox
    size busybox_fixed
       text    data     bss     dec     hex filename
     239616    2300   36816  278732   440cc busybox
7) The behaviour of whoami changed:
    actually it  prints out an username cut down to the size of the buffer.
    This could be fixed by increasing the size of the buffer as in id.c or
    avoid the use of my_getpwuid and use getpwuid directly instead.
    Maybe this colud be also remain unchanged......

Please apply if you think it is ok to do so.
The diff applies on today's cvs tarball (2004-08-25).
Thanks in advance,
Ciao,
Tito
</content>
</entry>
<entry>
<title>Patch from Tito documenting the '-q' option</title>
<updated>2004-08-19T18:25:02+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-19T18:25:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b131db43261ed8f89537ec7a246b1b274da8539b'/>
<id>urn:sha1:b131db43261ed8f89537ec7a246b1b274da8539b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixup 'dc' usage</title>
<updated>2004-08-18T17:57:16+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-18T17:57:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9ab4657c8908b923a2e4a1cae97e0471bb51809e'/>
<id>urn:sha1:9ab4657c8908b923a2e4a1cae97e0471bb51809e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tito, farmatito at tiscali dot it writes:</title>
<updated>2004-08-03T00:14:02+00:00</updated>
<author>
<name>Eric Andersen</name>
<email>andersen@codepoet.org</email>
</author>
<published>2004-08-03T00:14:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=93d7fba89288db6f9263c0ce8026f277bc4649e0'/>
<id>urn:sha1:93d7fba89288db6f9263c0ce8026f277bc4649e0</id>
<content type='text'>
Hi to all,
This patch is useful for:
1) remove an unused var from extern char *find_real_root_device_name(const char* name)
    changing it to extern char *find_real_root_device_name(void).
2) fixes include/libbb.h, coreutils/df.c, util-linux/mount.c and  util-linux/umount.c accordingly.
3) fixes a bug, really a false positive,  in find_real_root_device_name() that happens if
    in the /dev directory exists a link named root (/dev/root) that should be skipped but
    is not. This affects applets like df that display wrong results
</content>
</entry>
<entry>
<title>Patch from Felipe Kellermann, fixup usage for pidof, poweroff, remove </title>
<updated>2004-07-23T06:06:21+00:00</updated>
<author>
<name>Glenn L McGrath</name>
<email>bug1@ihug.co.nz</email>
</author>
<published>2004-07-23T06:06:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c0dd26f68d3b7956beed6f32088f73356fe2aa16'/>
<id>urn:sha1:c0dd26f68d3b7956beed6f32088f73356fe2aa16</id>
<content type='text'>
some trailing '\n'
</content>
</entry>
</feed>
