#include <Dt/Connect.h>
#include <Dt/DtNlUtils.h>
#include <Dt/HourGlass.h>
+#include <Dt/Dts.h>
+#include <Dt/SharedProcs.h>
#include <Tt/tttk.h>
+#include <Xm/XmPrivate.h> /* _XmStringUngenerate */
+
#include "Encaps.h"
#include "SharedProcs.h"
#include "FileMgr.h"
FindRec *find_rec,
int messageIndex,
String extra_string) ;
-static int FreeMatchInfo(
+static void FreeMatchInfo(
String *matches,
int numMatches) ;
static void LeaveStopBttn(
find_data->height = 0;
find_data->width = 0;
- (char *)getcwd((char *)dirbuf, (unsigned int)MAX_DIR_PATH_LEN);
+ (void)getcwd((char *)dirbuf, (unsigned int)MAX_DIR_PATH_LEN);
if(restrictMode &&
strncmp(users_home_dir, dirbuf, strlen(users_home_dir)) != 0)
{
*
************************************************************************/
-static int
+static void
FreeMatchInfo(
String *matches,
int numMatches )
if (access_priv == -1 && geteuid() != root_user)
{
#else
-# if defined(__hp_osf) || defined(__ultrix) || defined(__osf__) || defined(linux)
+# if defined(__hp_osf) || defined(__ultrix) || defined(__osf__) || defined(linux) || defined(CSRG_BASED)
setreuid(geteuid(),-1);
if (access ((char *) path, R_OK) == -1)
{
#ifdef __osf__
oldSig = signal(SIGCHLD, sigchld_handler);
#else
- oldSig = signal(SIGCLD, SIG_DFL);
+ oldSig = signal(SIGCHLD, SIG_DFL);
#endif /* __osf__ */
find_rec->popenId = findpopen(command, "r",&(find_rec->childpid));
- signal (SIGCLD, oldSig);
+ signal (SIGCHLD, oldSig);
if (find_rec->popenId == NULL)
{
if (offset > 0)
{
- buf[offset] = NULL;
+ buf[offset] = '\0';
buf = (String) DtEliminateDots (buf);
if ((stat (buf, &stat_data) == 0) ||
if (offset > 0)
{
- buf[offset] = NULL;
+ buf[offset] = '\0';
buf = (String) DtEliminateDots (buf);
if ((stat (buf, &stat_data) == 0) ||
if (offset > 0)
{
- buf[offset] = NULL;
+ buf[offset] = '\0';
buf = (String) DtEliminateDots (buf);
if ((stat (buf, &stat_data) == 0) ||
(void) fcntl(childside, F_DUPFD, read_or_write);
(void) close(childside); /* Save a file descriptor */
}
- (void) execl("/bin/ksh", "ksh", "-c", cmd, (char *)0);
+ (void) execl(KORNSHELL, "ksh", "-c", cmd, (char *)0);
/* Need to process the error return */
DBGFORK(("%s: child exiting\n", pname));