DragonFly submit List (threaded) for 2003-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Small bugfixes
Hi all,
attached are three small fixes.
The first a bug in pax and should be commited to FBSD, too.
Further info in OpenBSD's system/3455.
The second fixes a dependency problem if compiling kernels
with ppp after "make depend".
The third permits fstat to compile.
Without a fix, but is the syscall_not_present from
sys/posix4/posix4.h used anywhere? Otherwise are there
any objections to drop it along with fixing p1003_1b.c
for the no RT case?
Joerg
Index: ar_io.c
===================================================================
RCS file: /mnt/external/repository/dragonflybsd/src/bin/pax/ar_io.c,v
retrieving revision 1.2
diff -u -r1.2 ar_io.c
--- ar_io.c 17 Jun 2003 04:22:50 -0000 1.2
+++ ar_io.c 10 Sep 2003 16:40:02 -0000
@@ -307,6 +307,7 @@
ar_close()
#endif
{
+ int status;
if (arfd < 0) {
did_io = io_ok = flcnt = 0;
@@ -342,13 +343,14 @@
* for a quick extract/list, pax frequently exits before the child
* process is done
*/
- if ((act == LIST || act == EXTRACT) && nflag && zpid > 0) {
- int status;
+ if ((act == LIST || act == EXTRACT) && nflag && zpid > 0)
kill(zpid, SIGINT);
- waitpid(zpid, &status, 0);
- }
(void)close(arfd);
+
+ /* Do not exit before child to ensure data integrity */
+ if (zpid > 0)
+ waitpid(zpid, &status, 0);
if (vflag && (artyp == ISTAPE)) {
(void)fputs("done.\n", listf);
Index: Makefile
===================================================================
RCS file: /mnt/external/repository/dragonflybsd/src/sys/net/ppp_layer/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 15 Aug 2003 07:03:11 -0000 1.3
+++ Makefile 10 Sep 2003 16:33:03 -0000
@@ -1,7 +1,7 @@
# $FreeBSD: src/sys/modules/if_ppp/Makefile,v 1.21 1999/11/28 18:52:51 bde Exp $
# $DragonFly: src/sys/net/ppp_layer/Makefile,v 1.3 2003/08/15 07:03:11 dillon Exp $
-.PATH: ${.CURDIR}/.. ${.CURDIR}/../ppp
+.PATH: ${.CURDIR}/../ppp ${.CURDIR}/..
KMOD= if_ppp
SRCS= if_ppp.c ppp_tty.c slcompress.c \
use_ppp.h opt_inet.h opt_ipx.h opt_ppp.h vnode_if.h
Index: msdosfs.c
===================================================================
RCS file: /mnt/external/repository/dragonflybsd/src/usr.bin/fstat/msdosfs.c,v
retrieving revision 1.3
diff -u -r1.3 msdosfs.c
--- msdosfs.c 27 Aug 2003 03:21:49 -0000 1.3
+++ msdosfs.c 28 Aug 2003 20:47:33 -0000
@@ -45,12 +45,12 @@
#include <sys/vnode.h>
#include <sys/mount.h>
-#include <msdosfs/bpb.h>
-#include <msdosfs/msdosfsmount.h>
+#include <vfs/msdosfs/bpb.h>
+#include <vfs/msdosfs/msdosfsmount.h>
-#include <msdosfs/denode.h>
-#include <msdosfs/direntry.h>
-#include <msdosfs/fat.h>
+#include <vfs/msdosfs/denode.h>
+#include <vfs/msdosfs/direntry.h>
+#include <vfs/msdosfs/fat.h>
#include <err.h>
#include <kvm.h>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]