Path: utzoo!attcan!uunet!lll-winken!ames!pacbell!att!alberta!access!edm!news From: news@edm.UUCP (news software) Newsgroups: news.software.b Subject: MKDIR bug in 2.11 Keywords: MKDIRSUB, mkdir oops Message-ID: <5143@edm.UUCP> Date: 9 Jan 89 20:13:19 GMT Organization: Unexsys Systems Inc., Edmonton,AB. Lines: 53 It seems that there is an OOPS in the way that MKDIRSUB works for 2.11 (We're currently running patch 14). While defs.dist implies that it should be SET if your system has a mkdir subroutine, the replacement 'mkdir' definitin in funcs.c is surrounded by "#IFDEF"s rather than "#IFNDEF"s. The #IFDEF sequence is also ended with an '#ifdef /* !BSD4_2 */' which has been chnged appropriately. The other way to fix this (as many probably have) is to DEFINE MKDIRSUB for SYSV and other braindead systems. (just why IS mkdir an SU function???) diffs follow: - - - - - - - - - - - - - - - - - *** old/funcs.c --- funcs.c ************** *** 520,526 } #endif /* VMS */ ! #ifdef MKDIRSUB /* * make a directory. Also make sure that the directory is owned * by the right userid --- 520,526 ----- } #endif /* VMS */ ! #ifndef MKDIRSUB /* * make a directory. Also make sure that the directory is owned * by the right userid ************** *** 579,585 #endif return status; } ! #endif /* !BSD4_2 */ #ifndef RENAMESUB rename(from,to) --- 579,585 ----- #endif return status; } ! #endif /* !MKDIRSUB */ #ifndef RENAMESUB rename(from,to) -- ------------- Stephen Samuel Disclaimer: You betcha! {ihnp4,ubc-vision,seismo!mnetor,vax135}!alberta!edm!steve BITNET: USERZXCV@UQV-MTS