From 478577c8b34a3ac7645aaf740dda471a9a606c76 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 5 Jul 2014 07:39:19 +0000 Subject: Assume POSIX: S_IFSOCK and S_IFIFO Kill some 'notyet' code that will never be enabled --- usr.bin/rdistd/server.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'usr.bin/rdistd') diff --git a/usr.bin/rdistd/server.c b/usr.bin/rdistd/server.c index 68a24391289..2fd6b7f6270 100644 --- a/usr.bin/rdistd/server.c +++ b/usr.bin/rdistd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.30 2014/07/05 07:22:18 guenther Exp $ */ +/* $OpenBSD: server.c,v 1.31 2014/07/05 07:39:18 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -287,12 +287,8 @@ removefile(struct stat *statb, int silent) case S_IFLNK: case S_IFCHR: case S_IFBLK: -#ifdef S_IFSOCK case S_IFSOCK: -#endif -#ifdef S_IFIFO case S_IFIFO: -#endif if (unlink(target) < 0) { if (errno == ETXTBSY) { if (!silent) @@ -623,16 +619,6 @@ query(char *xname) case S_IFLNK: case S_IFDIR: case S_IFREG: -#ifdef notyet - case S_IFCHR: - case S_IFBLK: -#ifdef S_IFSOCK - case S_IFSOCK: -#endif -#ifdef S_IFIFO - case S_IFIFO: -#endif -#endif (void) sendcmd(QC_YES, "%lld %lld %o %s %s", (long long) stb.st_size, (long long) stb.st_mtime, -- cgit v1.2.3