--- Makefile +++ Makefile 1996/09/24 11:02:35 @@ -43,9 +43,10 @@ SHELL=/bin/sh all install install.man: FRC - @for t in $(TARGETS); do \ + @for t in $(TARGETS); do ( \ echo Making \"$@\" in \"$$t\"; \ (cd $$t; ${MAKE} $@); \ + ) || exit 1; \ done clean: --- Makefile.Linux +++ Makefile.Linux 1996/09/24 11:02:35 @@ -0,0 +1,18 @@ +# +# +# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux +# +# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany. +# +# Please send bug-fixes or comments to feedback@suse.de. +# +# Author: Florian La Roche +# +# + +compile: + make + +install: + make install + --- Makefile.local +++ Makefile.local 1996/09/24 11:02:35 @@ -9,6 +9,20 @@ # or add your own line. # #BIN_DIR = /usr/bin +BIN_DIR = ${DEBDIR}/usr/bin +MAN_1_DIR = ${DEBDIR}/usr/man/man1 +MAN_8_DIR = ${DEBDIR}/usr/man/man8 +RDIST_MODE = 755 +RDISTD_MODE = 755 +MAN_MODE = 644 +MAN_OWNER = root +MAN_GROUP = root +BIN_GROUP = root + +INSTALL = install +YACC = bison -y + +OPT = -O6 -fomit-frame-pointer -pipe # # Add any local definitions you want pass to the compiler to DEFS_LOCAL --- config/os-linux.h +++ config/os-linux.h 1996/09/24 11:02:35 @@ -119,8 +119,8 @@ /* * Our types, usually these are uid_t and gid_t. */ -typedef uid_t UID_T; /* Must be signed */ -typedef gid_t GID_T; /* Must be signed */ +typedef int UID_T; /* Must be signed */ +typedef int GID_T; /* Must be signed */ /* * Generic pointer, used by memcpy, malloc, etc. Usually char or void. --- doc/Makefile.real +++ doc/Makefile.real 1996/09/24 11:02:35 @@ -42,7 +42,7 @@ doc: -install: +install: install.man install.man: rdist.man rdistd.man ${INSTALL} ${INSTALL_ARGS} rdist.man ${CLIENT_DEST} --- doc/rdist.man +++ doc/rdist.man 1996/09/24 11:02:35 @@ -165,7 +165,7 @@ .I rdist was compiled with the location of the old rdist (usually either -.I /usr/ucb/oldrdist +.I /usr/bin/oldrdist or .I /usr/old/rdist) and that program is available at run time. @@ -472,7 +472,7 @@ may be a colon seperated list of possible pathnames. In this case, the first component of the path to exist is used. i.e. -.B "/usr/ucb/rsh:/usr/bin/remsh", +.B "/usr/bin/rsh:/usr/bin/remsh", .B /usr/bsd/rsh. .TP .B "\-t \fItimeout\fR" --- src/Makefile.real +++ src/Makefile.real 1996/09/24 11:02:35 @@ -78,9 +78,9 @@ $(COMMONOBJS) $(MISSINGOBJS) install: $(CLIENT_BIN) $(SERVER_BIN) - $(INSTALL) ${IN_ARGS} -o root -m ${RDIST_MODE} \ + $(INSTALL) ${IN_ARGS} -s -o root -m ${RDIST_MODE} \ $(CLIENT_BIN) $(BIN_DIR)/$(CLIENT) - $(INSTALL) ${IN_ARGS} -o ${BIN_OWNER} -m ${RDISTD_MODE} \ + $(INSTALL) ${IN_ARGS} -s -o ${BIN_OWNER} -m ${RDISTD_MODE} \ $(SERVER_BIN) $(BIN_DIR)/$(SERVER) install.man: --- src/expand.c +++ src/expand.c 1996/09/24 11:04:57 @@ -381,7 +381,7 @@ return; goto patherr2; } - if (fstat(dirp->dd_fd, &stb) < 0) + if (fstat(dirfd(dirp), &stb) < 0) goto patherr1; if (!S_ISDIR(stb.st_mode)) { errno = ENOTDIR;