Subject: adb doesn't know about chflags(2) and fchflags(2) (#213) Index: bin/adb/opset.c,bin/chflags/Makefile 2.11BSD Description: 'adb' does not decode the recently added syscalls 'chflags' (sys 17) and 'fchflags' (sys 18). The makefile for the chflags(1) program only creates the manpage unless 'make all' is done. Repeat-By: Use 'adb' to look at a program using 'chflags(2)' (or 'fchflags(2)') and observer that you see "sys 17" instead of "sys chflags". cd /usr/src/bin/chflags make note that only the manpage is created. Fix: The fixes are very simple. As usual when I add a new syscall into the kernel I forgot to update 'adb' at the same time. The chflags 'Makefile' simply had the 'all' target too late - moving it above the manpage target fixes the problem. To apply the update: 1) save where indicated below to a file (/tmp/foo) 2) patch -p0 < /tmp/foo 3) cd /usr/src/bin/adb; make; make install ========================cut here================= *** /usr/src/bin/adb/opset.c.old Wed May 4 20:56:20 1994 --- /usr/src/bin/adb/opset.c Mon Dec 26 17:38:17 1994 *************** *** 1,3 **** --- 1,7 ---- + #if !defined(lint) && defined(DOSCCS) + static char sccsid[] = "@(#)opset.c 2.0 (2.11BSD GTE) 12/26/94"; + #endif + #include "defs.h" char *errflg; *************** *** 145,152 **** "mknod", "chmod", "chown", ! NULL, /* 17 - old sbreak */ ! NULL, /* 18 - old stat */ "lseek", "getpid", "mount", --- 149,156 ---- "mknod", "chmod", "chown", ! "chflags", ! "fchflags", "lseek", "getpid", "mount", *** /usr/src/bin/chflags/Makefile.old Tue Dec 13 19:42:14 1994 --- /usr/src/bin/chflags/Makefile Mon Dec 26 17:32:44 1994 *************** *** 1,7 **** # # Public Domain. 12/3/1994 - Steven Schultz # ! # @(#)Makefile 1.0 (2.11BSD GTE) 12/3/94 # CFLAGS= -O SEPFLAG= -i --- 1,7 ---- # # Public Domain. 12/3/1994 - Steven Schultz # ! # @(#)Makefile 1.1 (2.11BSD GTE) 12/26/94 # CFLAGS= -O SEPFLAG= -i *************** *** 11,23 **** MAN= chflags.0 MANSRC= chflags.1 ! chflags.0: ${MANSRC} ! /usr/man/manroff ${MANSRC} > ${MAN} ! all: chflags ! ! chflags: ${MAN} ${OBJS} ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} clean: rm -f ${OBJS} ${MAN} chflags tags --- 11,23 ---- MAN= chflags.0 MANSRC= chflags.1 ! all: chflags chflags.0 ! chflags: ${OBJS} ${CC} ${CFLAGS} ${SEPFLAG} -o $@ ${OBJS} + + chflags.0: ${MANSRC} + /usr/man/manroff ${MANSRC} > ${MAN} clean: rm -f ${OBJS} ${MAN} chflags tags *** /VERSION.old Fri Dec 23 18:02:26 1994 --- /VERSION Mon Dec 26 18:17:21 1994 *************** *** 1,4 **** ! Current Patch Level: 212 2.11 BSD ============ --- 1,4 ---- ! Current Patch Level: 213 2.11 BSD ============