dtfile: use sh instead of ksh for find command

This commit is contained in:
Chase
2025-11-23 20:36:43 -05:00
committed by Jon Trulson
parent 76b99355ce
commit 48aaa75f11
2 changed files with 3 additions and 5 deletions

View File

@@ -2887,7 +2887,7 @@ findpopen(char *cmd, char *mode, int *childpid)
(void) fcntl(childside, F_DUPFD, read_or_write); (void) fcntl(childside, F_DUPFD, read_or_write);
(void) close(childside); /* Save a file descriptor */ (void) close(childside); /* Save a file descriptor */
} }
(void) execl(KORNSHELL, "ksh", "-c", cmd, (char *)0); (void) execl("/bin/sh", "sh", "-c", cmd, (char *)0);
/* Need to process the error return */ /* Need to process the error return */
DBGFORK(("%s: child exiting\n", pname)); DBGFORK(("%s: child exiting\n", pname));

View File

@@ -13,8 +13,7 @@ dist_bin_SCRIPTS = dtfile_error dterror.ds
dtfile_CPPFLAGS = -I./dtcopy -DSHAPE -D_ILS_MACROS -DSUN_PERF \ dtfile_CPPFLAGS = -I./dtcopy -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \ -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \ -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
-DKORNSHELL=\"$(KSH)\"
dtfile_LDADD = dtcopy/sharedFuncs.o \ dtfile_LDADD = dtcopy/sharedFuncs.o \
dtcopy/fsrtns.o \ dtcopy/fsrtns.o \
@@ -45,8 +44,7 @@ dtfile_SOURCES = ChangeDir.c ChangeDirP.c Command.c Common.c \
# Mind the quoting here... # Mind the quoting here...
SCRIPTFLAGS = -DSHAPE -D_ILS_MACROS -DSUN_PERF \ SCRIPTFLAGS = -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP="$(CDE_INSTALLATION_TOP)" \ -DCDE_INSTALLATION_TOP="$(CDE_INSTALLATION_TOP)" \
-DCDE_CONFIGURATION_TOP="$(CDE_CONFIGURATION_TOP)" \ -DCDE_CONFIGURATION_TOP="$(CDE_CONFIGURATION_TOP)"
-DKORNSHELL="$(KSH)"
dtfile.config: dtfile.config.cpp dtfile.config: dtfile.config.cpp
$(RM) $@ $(RM) $@