as expected).
Ciao,
Tito
@Walter
Nonetheless if you want to add some warning or
maybe some advice in the id help text feel free
to send a patch.
So you removed the #ifdef test and Wanter should fix it?
Nice...
@Walter
Yes, would have been nice :-)
--
vda
--- coreutils
advice in the id help text feel free
to send a patch.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
On Saturday 15 November 2008 21:48:16 walter harms wrote:
Tito schrieb:
On Saturday 15 November 2008 10:51:44 walter harms wrote:
Rob Landley schrieb:
On Friday 14 November 2008 09:42:50 walter harms wrote:
hhhmmm,
releasing a code that depends on a libc version that is not released
in will therefore be available in
uClibc 0.9.30 wich will be realeased soon.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
/remove: 6/3 grow/shrink: 7/12 up/down: 177/-303)Total: -126 byte
Hints, critics, improvements are as always welcome.
Ciao,
Tito
PS: later maybe some improvements could be done also on the getpwnam and
getgrnam
based functions.
___
busybox
--
(add/remove: 6/3 grow/shrink: 7/12 up/down: 177/-303)Total: -126 bytes
Please take a look at them and apply if you like them.
Ciao,
Tito
--- busybox.old/libbb/bb_pwd.c 2008-07-22 13:43:09.0 +0200
+++ busybox/libbb/bb_pwd.c 2008-11-05 17:08
Hi,
please apply.
Ciao,
Tito
--- coreutils/id_orig.c 2008-11-04 22:03:37.0 +0100
+++ coreutils/id.c 2008-11-04 22:10:07.0 +0100
@@ -133,7 +133,7 @@
}
/* JUST_ALL_GROUPS ignores -r PRINT_REAL flag even if man page for */
/* id says: print the real ID
Hi,
please apply.
Ciao,
Tito
--- coreutils/id_orig.c 2008-11-04 22:03:37.0 +0100
+++ coreutils/id.c 2008-11-05 00:17:04.0 +0100
@@ -60,7 +60,7 @@
return print_common(id, bb_getgrgid, prefix);
}
-static int print_user(gid_t id, const char *prefix)
+static int
like it.
Ciao,
Tito
PS: Denys I removed the #if HAVE_getgrouplist as it seems to me
that now we have getgrouplist in busybox libpwd, in gnu libc and also
in uclibc (svn?).
PPS: is the G (*(struct globals*) stuff needed in this applet?
id_test.sh
Description: application/shellscript
*/
) {
bb_simple_perror_msg(pw.pw_dir);
}
so i suspect that chown and/or chmod fail on fat as this operations
are not supported on that filesystem.
Ciao,
TIto
___
busybox mailing list
busybox@busybox.net
http
(GPL binary and NON GPL library)
whether dinamically nor statically linked.
Just my 0,2 cents
Ciao,
Tito
I this case is the GPLed code which gains
some benefits (running faster) even if running faster ability come out
not for free (in any sense). In this case the proprietary code could
On Saturday 27 September 2008 23:53:15 Tito wrote:
On Saturday 27 September 2008 16:45:47 you wrote:
On Saturday 27 September 2008 16:00, Tito wrote:
Hi Denys,
maybe this patches slipped through as my cc to you get
bounced by a spam filter that blacklisted my ip?
I received them
On Sunday 28 September 2008 01:11:45 Denys Vlasenko wrote:
On Saturday 27 September 2008 17:06, Tito wrote:
On Saturday 27 September 2008 16:45:47 you wrote:
On Saturday 27 September 2008 16:00, Tito wrote:
Hi Denys,
maybe this patches slipped through as my cc to you get
bounced
On Saturday 27 September 2008 16:45:47 you wrote:
On Saturday 27 September 2008 16:00, Tito wrote:
Hi Denys,
maybe this patches slipped through as my cc to you get
bounced by a spam filter that blacklisted my ip?
I received them. sorry about this delay.
# [PATCH 1/3] add
) the function uses getgrouplist if available or getgrent.
4) it can handle egid != rgid if needed
llist_t* FAST_FUNC bb_getgrouplist_malloc(uid_t ruid, gid_t rgid, gid_t *egid)
Please apply if you like it.
Hints and critics are welcome.
Ciao,
Tito
--- include/libbb_orig.h 2008-09-12 16:34
was not able to make it
smaller, sorry for that.
The changes to the print_* functions where needed for fixing
the exit code error and to support euid/egid handling of patch 3.
Hints and critics are welcome.
Please apply if you like it.
Ciao,
Tito
--- coreutils/id_orig.c 2008-09-18 09:01:25.0
Hi,
this patch adds correct euid egid handling to id so
to make it fully SuSv3 compliant.
Hints and critics are welcome.
Please apply if you like it.
Ciao,
Tito
--- coreutils/id_orig.c 2008-09-21 14:27:23.0 +0200
+++ coreutils/id.c 2008-09-21 14:31:08.0 +0200
@@ -74,6 +74,8
On Friday 19 September 2008 00:54:12 Denys Vlasenko wrote:
On Thursday 18 September 2008 09:08, Tito wrote:
I just committed the version which uses getgrouplist() and thus should
work even on glibc systems with LDAP-based user database etc.
Implemented getgrouplist() in libpwdgrp, so
On Thursday 18 September 2008 02:59:36 Denys Vlasenko wrote:
On Thursday 18 September 2008 00:20, Tito wrote:
Hi,
i'm posting a drop in replacement for id that summarizes my current progress
in making id SuSv3 compliant and in a working implementation of
llist *bb_getgrouplist
On Monday 15 September 2008 23:23:19 Tito wrote:
Hi to all,
i'm thinking about a getgrouplist implementation for busybox.
To use for example in id, but maybe also other applets could
use it. So far I have two different versions based on the same
algoritm but I'm unable to decide which
?
I would like also to know which of the two
implementations gid_t* or llist_t* is
better in your opinion.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
be wrong,
but if you have some ideas ;-)
Ciao,
Tito
Regards,
--
Vladimir
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
On Wednesday 17 September 2008 21:54:27 walter harms wrote:
Tito schrieb:
On Wednesday 17 September 2008 18:03:43 Vladimir Dronnikov wrote:
Even better! Just like we've finally drifted to getmntent() in fsck.
--
Vladimir
I fear there is no getgrent in libpwdgrp.
That's why I
On Wednesday 17 September 2008 21:29:41 Vladimir Dronnikov wrote:
The idea of direct parsing is shown in the attached patch.
Please, take a look.
Regards,
--
Vladimir
Hi,
I've tried it but at least with my limitated skills the use of the parse config
stuff
increases size.
Ciao,
Tito
hex filename
986 0 0 9863da id.o
Best regards and thanks for your time and effort,
Ciao,
Tito
/* vi: set sw=4 ts=4: */
/*
* Mini id implementation for busybox
*
* Copyright (C) 2000 by Randolph Chung [EMAIL PROTECTED]
*
* Licensed under GPLv2 or later, see file
On Monday 15 September 2008 21:06:34 Tito wrote:
On Sunday 14 September 2008 21:35:57 you wrote:
On Sunday 14 September 2008 19:16, Tito wrote:
Hi,
sadly there was a bug in the previous patch:
n = getgroups(0, 0);
groups = (gid_t *)xmalloc(sizeof(gid_t) * n
On Sunday 14 September 2008 21:35:57 you wrote:
On Sunday 14 September 2008 19:16, Tito wrote:
Hi,
sadly there was a bug in the previous patch:
n = getgroups(0, 0);
groups = (gid_t *)xmalloc(sizeof(gid_t) * n);
getgroups(n, (gid_t *)groups);
This code works
, critics comments are welcome..
Ciao,
Tito
gid_t *bb_getgrouplist_malloc(uid_t uid, int *ngrp)
Usage example:
int ngrp = 0;
gid_t grplist * = bb_getgrouplist_malloc(uid, ngrp);
for (int i = 0; i ngrp; i++) {
printf(%d , grplist[i]);
}
free(grp_list);
llist_t *bb_getgrouplist_malloc
to lower numbers:
id -G
0 46
./busybox id -G
46 0
4) the -G switch must be mutually exclusive with -u and -g:
id -Gu
id: cannot print only of more than one choice
id -Gg
id: cannot print only of more than one choice
./busybox id -Gu
0
debian:~/Desktop/busybox# ./busybox id -Gg
0
Ciao,
Tito
On Thursday 11 September 2008 21:43:24 Tito wrote:
On Thursday 11 September 2008 19:26:48 Vladimir Dronnikov wrote:
I'd make this both FEATURED and depending on CONFIG_DESKTOP, Walter.
Hi,
just for fun here is a different approach for adding the -G switch to id.
I tested it a bit
) 6.10
mv foo ---bar
mv: unrecognized option `---bar'
Try `mv --help' for more information.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
:
audio:x:29:
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:
snip-
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman
On Friday 22 August 2008 10:05:58 you wrote:
On Thu, Aug 21, 2008 at 11:48:55PM +0200, Tito wrote:
On Thursday 21 August 2008 22:12:52 Bernhard Reutner-Fischer wrote:
Hi,
The help-text of rpm sounds like it's inaccurate.
#define rpm_full_usage \n\n \
Manipulate RPM packages
a package file
-l list files in package
-d list all documentation files
-c list all configuration files
--dump dump basic file information
so no -q -i
Ciao,
TIto
TIA
));
+ ioctl_or_perror_and_die(random_fd, RNDGETENTCNT, ent_count,
RNDGETENTCNT failed: %s);
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
attempts to load modules are dirt cheap. No need to bother with
spacings, tokenization and uncommenting.
What is wrong with the idea? Just give it a try, folks!
Hi,
what happens if some third party modules are compiled/added
to system after modprobe precollected his data?
Ciao,
Tito
source code.
as you can see if you grep for ioctl_or_warn or xioctl.
If you want to use custom error messages use:
ioctl_or_perror(int fd, unsigned request, void *argp, const char *fmt,...)
Ciao,
Tito
#if ENABLE_IOCTL_HEX2STR_ERROR
int bb_ioctl_or_warn(int fd, unsigned request, void *argp
+ printf(SW timer is %dms, HW timer is %dms\n,
+ stimer_duration, htimer_duration * 1000);
Just my 0,02 € cents ;-)
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
is removed you loose the possibility
to run bloat-o-meter as you need to revert your changes
to get a new busybox_old or download the busybox source
of that particular revision you are working on.
Ciao,
Tito
i'm not really concerned about where stuff gets cleaned, as long as
make distclean
On Friday 18 July 2008 14:18:41 Robert P. J. Day wrote:
On Fri, 18 Jul 2008, Tito wrote:
Hi,
please don't remove busybox_old with make clean
as it is used for bloat-checks like:
1) compile with your config
2) mv busybox_unstripped to busybox_old
3) change stuff and recompile
4
their work as expected.
Ciao,
TIto
/*
* Returns a linked list of all retrieved elements.
* Comment lines starting with delim are ignored.
* End-of-line comments are supported.
* Blank lines are ignored.
* Lines may be indented freely.
* A \ character at the very end of the line indicates
-month, new_head-day_of_week, new_head-cmd);
new_head-link = *old_head;
*old_head = new_head;
}
free(option_list);
}
This obviously is only pseudo code not tested nor compile tested, just an idea.
Comments, hints, critics are welcome
Ciao,
Tito
On Wednesday 09 July 2008 18:01:17 Tito wrote:
On Wednesday 09 July 2008 14:35:50 Rob Landley wrote:
On Tuesday 08 July 2008 16:40:14 Vladimir Dronnikov wrote:
Cool!
But we need to not just process continuations and comments but also to
parse the line into some (possibly variable
:
./test config.cfg
option=1
option=2
option=corner-case1
option=corner-case3
option=corner-case2
option=after_new_lines
option 3
option 33 3 3
option abracadabra
option=multiline-option
Just my 0,2 centsin the hope it could be somehow useful :-)
Ciao,
Tito
/* Lines starting
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
On Tuesday 17 June 2008 09:43:54 Bernhard Fischer wrote:
On Mon, Jun 16, 2008 at 09:48:07PM +0200, Tito wrote:
On Monday 16 June 2008 09:47:31 Bernhard Fischer wrote:
On Mon, Jun 16, 2008 at 08:45:18AM +0200, Tito wrote:
On Monday 16 June 2008 06:33:35 you wrote:
char* strrstr(const
is that it is probably a little more cpu intensive :)
Please apply if you like it.
Ciao,
Tito
--- libbb/strrstr_orig.c 2008-06-17 16:11:06.0 +0200
+++ libbb/strrstr.c 2008-06-17 21:33:51.0 +0200
@@ -13,19 +13,16 @@
* The strrstr() function finds the last occurrence
On Monday 16 June 2008 06:33:35 you wrote:
On Sunday 15 June 2008 23:06, Tito wrote:
Hi,
while inspecting the last changes in busybox code I hit some issues in
libbb/strrstr.c. The strrtstr function fails on some corner cases of a
little
test program I wrote (and bombs out on NULL
On Monday 16 June 2008 09:47:31 Bernhard Fischer wrote:
On Mon, Jun 16, 2008 at 08:45:18AM +0200, Tito wrote:
On Monday 16 June 2008 06:33:35 you wrote:
There was one more reason to avoid strlen, but it was just my personal
stupid paranoia:
as we don't know the lenght of the strings
--
(add/remove: 0/0 grow/shrink: 1/0 up/down: 20/0) Total: 20 bytes
The strrstr function at the moment is used only in depmod
so the depmod author should check if this new implementation
is suitable to be used.
Hints, critics and improvements are ,as always, welcome.
Ciao,
Tito
On Sunday 15 June 2008 23:21:43 Bernhard Fischer wrote:
On Sun, Jun 15, 2008 at 11:06:17PM +0200, Tito wrote:
Hi,
while inspecting the last changes in busybox code I hit some issues in
libbb/strrstr.c. The strrtstr function fails on some corner cases of a little
test program I wrote
, ;-)
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
request, ...);
Couldn't this changes be made platform dependent with some voodoo magic
at compile time?
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
Hi,
Denis maybe this patch slipped through, so i'm resending it
to know your opinion about it.
Ciao,
TIto
Hi,
this patch adds the new function xcheck_name()
void xcheck_name(const char *name)
{
int i = 0;
do {
if (!isalnum(*name)
!(*name
to be secured. if someone is
sniffing traffic and the traffic is encrypted, then the attacker merely needs
to go to the public FTP and fetch the files themselves.
-mike
Hi,
maybe the problem is to post a file on a public ftp server
in a way that its contents are not public..?
Ciao,
Tito
like this?
/* Force the output to be unbuffered.*/
setbuf(stdout, (char *) 0);
Ciao,
Tito
Plz, do apply.
--
Vladimir
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
On Monday 25 February 2008 16:48:57 Denys Vlasenko wrote:
On Monday 25 February 2008 00:46, Tito wrote:
Hi,
this is a preliminary patch that adds the new libbb function
safe_gethostname and converts all
occurrences of gethostname to it.
+char *safe_gethostname(void
On Monday 25 February 2008 21:40:10 Denys Vlasenko wrote:
On Monday 25 February 2008 21:02, Tito wrote:
Why 256?
Leftover of my first attempt with a static buffershould be 255 in this
case.
I mean, why not sizeof()? I think sizeof never lies.
If fields are indeed
On Sunday 24 February 2008 14:25:04 walter harms wrote:
Tito wrote:
On Saturday 23 February 2008 18:16:27 walter harms wrote:
Tito wrote:
On Saturday 23 February 2008 02:50:11 Clem Taylor wrote:
snip
hi Tito,
are you sure about HOST_NAME_MAX ?
according to my includes
sizeof
On Sunday 24 February 2008 15:23:01 walter harms wrote:
As tito pointed out
the xasprintf() alloced everytime so it needs a free() or you system will
leak memory with every step.
i realy hope this is the last version.
re,
wh
Hi,
why don't you move both the xasprintf and the free
but preventing chrashes like the one above
Wait a second. I do not understand how it crashes in the first place.
I suspect that gethostname somehow fails and strchrnul chokes on G.localHostName
starting with nul but this is just an idea.
Ciao,
Tito
char *xgethostname()
{
char *buf=NULL
On Sunday 24 February 2008 20:08:00 Denys Vlasenko wrote:
On Sunday 24 February 2008 15:03, Tito wrote:
are you sure about HOST_NAME_MAX ?
according to my includes
sizeof(uname.nodename) = _UTSNAME_NODENAME_LENGTH = _UTSNAME_LENGTH = 65
and MAXHOSTNAMELEN= 64
while
);
/* It is unspecified whether the truncated hostname
* will be null-terminated. Idiots! */
G.localHostName[64 -1] = '\0';
*strchrnul(G.localHostName, '.') = '\0';
This used to work in devfsd.c.
Maybe there is a need for a bb_gethostname()
Ciao,
Tito
On Saturday 23 February 2008 13:33:44 walter harms wrote:
Tito wrote:
On Friday 22 February 2008 19:13:51 walter harms wrote:
hi list,
this simplifies the coding of the watch utility.
I does not save much bytes but it thing it is easier to read
now. I have changed the date time
On Saturday 23 February 2008 18:16:27 walter harms wrote:
Tito wrote:
On Saturday 23 February 2008 02:50:11 Clem Taylor wrote:
I'm trying to switch from an old busybox 1.5.0.svn (2007-11-19) to
busybox 1.9.1 and syslogd segfaults on startup:
#0 0x2ab609cc in strcpy () from /lib/libc.so
for malloc errors and is portable on systems that don't have asprintf...
asprintf(cmd,%s,*argv );
while (*++argv)
asprintf(cmd,%s %s,cmd,*argv );
while (1) {
Just my 2 cents. ;-)
Ciao,
Tito
BTW, coding style in some places is bad:
strftime(header + width
if there are similar options that take arguments.
IMHO the best solution is to use two independent getopt32 calls.
Ciao,
Tito
You see, if we launch, say, sendmail then the first call to getopt32
would fail [showing bb_usage()] on any fetchmail_specific_options and
even on sendmail_specific_options
if it is worth the effort tough. :-)
Ciao,
Tito
So let it be 2 calls.
Thanx for discussion.
--
Vladimir
2008/2/2, Tito [EMAIL PROTECTED]:
On Saturday 02 February 2008 21:06:52 Vladimir Dronnikov wrote:
Hi,
maybe check the applet_name at startup and then
if (applet_name[0
sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Ciao,
Tito
On Tuesday 22 January 2008 18:04:38 walter harms wrote:
i did a quick check on my desktop (glibc).
and it works as expected
does only fdisk -l segfault or also fdisk -l /dev/xxx ?
re,
wh
. :-)
Just an idea.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
) ...
groupadd: q is not a valid group name
adduser: `/usr/sbin/groupadd -g 1006 q'
returned error code 3. Exiting.
Just an idea.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http
On Thursday 10 January 2008 23:22:52 Cristian Ionescu-Idbohrn wrote:
On Thu, 10 Jan 2008, Tito wrote:
OTOH it doesn't solve the problem of a possible ambiguity
between username and uid as names composed only of digits
are legal.
What I meant was: either (default) truncated usernames
On Wednesday 09 January 2008 11:11:04 Natanael Copa wrote:
On Tue, 2008-01-08 at 22:42 +0100, Tito wrote:
Hi,
this new version of tac.c handles embedded nulls in a correct way.
I tested it in comparison with the real tac on most of the files
of my hard disk with the attached script
(temp_list, line);
}
this was the test file i used (attached):
055 056 057 000 057 056 055 010
result is:
GNU tac
tac prova4
789987
busybox
./busybox tac prova4
789987
Ciao,
TIto
--
vda
789 987
/* vi: set sw=4 ts=4: */
/*
* tac implementation for busybox
*
* Copyright
not... But shmget()
succeeded and that's strange.
Anyway, any help will be greatly appreciated.
Thanks,
Alex
Alex, you attached a man page rather than the patch. :-)
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman
On Saturday 29 December 2007 03:18:13 Denys Vlasenko wrote:
On Friday 28 December 2007 21:36, Tito wrote:
just for fun I've created an alternative version of tac
using only linked lists in memory. Probably the size
is smaller but I haven't checked it yet as I
would like to hear first
?...)
The lsusb command could give you more info about the usb device.
All in all I suspect that this has not much to do with busybox tough
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
the '+' and then feeding it to xatoi_ could help...
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[EMAIL PROTECTED]:~/Desktop/busybox# ls -la test.tar
-rw-r--r-- 1 root root 2560 2007-11-16 14:15 test.tar
I cannot say if this fix is correct or if maybe it should be
done the other way by increasing the size of char magic
to 8.
Just my 0,02 EUR cents :-)
Ciao,
Tito
On Friday 16 November 2007 19:48:08 Denys Vlasenko wrote:
On Friday 16 November 2007 05:19, Tito wrote:
On Friday 16 November 2007 13:34:25 Alexander Griesser wrote:
[EMAIL PROTECTED]:~/busybox/busybox-1.8.1$ ./busybox tar cf test.tar a s d
*** buffer overflow detected ***: ./busybox
On Friday 16 November 2007 19:48:08 you wrote:
u s t a r sp sp nul
BTW: shouldn't it be:
char magic[5]/* as there is no null termination of the string */
char version[3] /* as the string is null terminated */
Just an idea.
Ciao,
Tito
On Friday 16 November 2007 21:34:25 Denys Vlasenko wrote:
On Friday 16 November 2007 12:24, Alexander Griesser wrote:
Tito schrieb:
by compiling the latest svn i get this warning:
CC archival/tar.o
archival/tar.c: In function ‘writeFileToTarball’:
archival/tar.c:183: warning
/lib/libnss_nisplus.so.2
/lib/libnss_files.so.2 /lib/libnss_nis.so.2
/lib/libresolv-2.6.1.so
/lib/libresolv.so.2 - libresolv-2.6.1.so
Just an idea
Ciao,
Tito
Best Regards
Mirek
___
busybox mailing list
busybox@busybox.net
http
On Tuesday 13 November 2007 18:22:34 Denys Vlasenko wrote:
On Sunday 11 November 2007 05:29, Tito wrote:
Hi,
this size reduces size of who.c by removing a variable.
The patch is tested and works for me.
Bloat o meter says:
scripts/bloat-o-meter busybox_old busybox_unstripped
runlevel ~? Nov 11 10:06:20
LOGIN tty1 03:17 Nov 11 10:06:47
tito tty2 00:01 Nov 11 13:22:31
LOGIN tty3 03:17 Nov 11 10:06:47
LOGIN tty4 03:17 Nov 11 10:06:47
LOGIN tty5 03:17 Nov 11 10:06:47
LOGIN tty6 03:17
)
return 2;
return 0;
}
Ciao,
Tito
--- loginutils/adduser.c.orig 2007-10-27 08:57:23.0 +0200
+++ loginutils/adduser.c 2007-10-27 15:54:25.0 +0200
@@ -20,11 +20,6 @@
{
enum { min = 500, max = 65000 };
FILE *passwd;
- /* We are using reentrant fgetpwent_r
check, could not be less than min */
if (p-pw_uid max)
return 2;
return 0;
}
This is only a proof of concept and is only compile tested.
If it works for you, your patch could be easily integrated.
Ciao,
Tito
___
busybox
On Wednesday 24 October 2007 22:41:48 Ralf Friedl wrote:
Tito wrote:
maybe this could fix the problem you report:
...
/* create new gid always = uid and re-check if the uid is free
*/
while (getgrgid(p-pw_uid) getpwuid(p-pw_uid))
p-pw_uid
On Friday 28 September 2007 21:14:45 Ralf Friedl wrote:
Tito wrote:
Maybe this version could be more useful.
void xfree(void *ptr)
{
/* sets the pointer to NULL
after it has been freed.*/
void **pp = (void **)ptr;
if (*pp == NULL) return
)
{
/* sets the pointer to NULL
after it has been freed.*/
void **pp = (void **)ptr;
if (*pp == NULL) return;
free(*pp);
*pp = NULL;
}
just my 0,2 cent. ;-)
Ciao,
Tito
___
busybox mailing list
busybox
://www.softwarefreedom.org/news/2007/sep/20/busybox/complaint.pdf
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
) by vda
File length: 2952 byte(s)
Diff to previous 17095 (colored)
chown: fix handling of user.group notation
It seem that the glue between the system and user and group config file
doesn't work !
All ideas are welcome
Ciao,
Tito
On Monday 03 September 2007 21:13:16 Denys Vlasenko wrote:
On Sunday 02 September 2007 20:20, Tito wrote:
Hi to all,
this is a drop in replacement for tail.c.
It is a result of a few sleepless nights of hacking
that started by looking at and trying
to understand mjn3's code
On Friday 17 August 2007 17:13:43 Tito wrote:
On Friday 17 August 2007 02:08:24 kylix wrote:
Hi,all
I want to build a DHCP server on my embedded linux system.
My busybox version is v1.3.
when udhcpd running, it will get the configure infomation from
udhcpd.conf
/down: 1152/0) Total: 1152 bytes
Ciao,
Tito
--- busybox.latest/include/applets.h 2007-08-07 21:19:36.0 +0200
+++ busybox/include/applets.h 2007-08-12 23:10:17.0 +0200
@@ -134,6 +134,7 @@
USE_ENVDIR(APPLET_ODDNAME(envdir, chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER, envdir
On Monday 06 August 2007 23:00:56 Tito wrote:
Hi,
this is a first attempt to implement a stripped down version of expand.
This version is only little tested so it may contain all sort of bugs.
Hints, critics and help in testing and improving it is welcome.
bloat-o-meter (after make
(as long as we don't try to do the expand -t list files stuff)
but before attempting it I would like the current code to be
better tested, debugged and optimized, as it is mostly untested.
Ciao,
Tito
___
busybox mailing list
busybox@busybox.net
http
,
Tito
--- busybox.orig/include/applets.h 2007-08-03 14:17:54.0 +0200
+++ busybox/include/applets.h 2007-08-05 20:57:48.0 +0200
@@ -134,6 +134,7 @@
USE_ENVDIR(APPLET_ODDNAME(envdir, chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER, envdir))
USE_ENVUIDGID(APPLET_ODDNAME(envuidgid, chpst
();
+
/* check if group and user exist */
xuname2uid(argv[0]); /* unknown user: exit */
xgroup2gid(argv[1]); /* unknown group: exit */
Only little tested.
Please apply if you like it.
Ciao,
Tito
___
busybox
sys
addgroup root tty
Ciao,
Tito
Thanks,
Dallas
___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
501 - 600 of 641 matches
Mail list logo