[BusyBox] Syslogd.c (long-overdue patch) and HUSH bug reports.

Gennady Feldman gena01 at cachier.com
Mon Jun 25 16:06:34 UTC 2001


Hello everybody.

	I am submitting a 2 line fix for syslogd (didn't I submit it a
while back, I guess nobody committed it). This should fix "circular
buffer" error message shown when running "syslogd -C".

	Also I did a "cvs up -dP" and updated my copy of busybox. I also
started testing hush. The interesting thing was that I was unable to
change the default prompt in hush. Is this feature implemented? When hush
starts up there is no PS1 variable set so it shows ">" as the default
prompt. (I did enable the FANCY_PROMPT feature in Config.h) When I try to
do set PS1="[\u@\h \W]$ " it seems to set the variable but the actual
prompt is not set. The interesting thing is that if you type the
following: set $PS1="[\u@\h \W]$ " then when doing set to show the
environment variable there is no variable name and yet there is a line
that says:
=[u at h W]$
or something of this sort.

G.F.
-------------- next part --------------
Index: syslogd.c
===================================================================
RCS file: /var/cvs/busybox/syslogd.c,v
retrieving revision 1.70
diff -u -r1.70 syslogd.c
--- syslogd.c	2001/05/16 15:40:48	1.70
+++ syslogd.c	2001/06/25 21:48:36
@@ -155,8 +155,6 @@
 		    perror_msg_and_die("semget");
 		}else
     			perror_msg_and_die("semget");
-	    } else {
-		    sem_up(s_semid);
 	    }
 	}else{
 		printf("Buffer already allocated just grab the semaphore?");


More information about the busybox mailing list