- Timestamp:
- Apr 11, 2006, 1:48:18 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/make-tests.sh
r19 r29 49 49 CuSuiteDetails(suite, output); 50 50 if (suite->failCount > 0) 51 fprintf(stderr, "%s \n", output->buffer);51 fprintf(stderr, "%s%c", output->buffer, 0x0A); 52 52 else 53 fprintf(stdout, "%s \n", output->buffer);53 fprintf(stdout, "%s%c", output->buffer, 0x0A); 54 54 return suite->failCount; 55 55 } -
trunk/src/sh_extern.c
r22 r29 115 115 FILE * outf = NULL; 116 116 char * envp[1]; 117 char * argp[ 1];117 char * argp[2]; 118 118 119 119 char * errfile; … … 133 133 * needs a valid *envp[] with envp[0] = NULL; 134 134 * and similarly for argp 135 * OpenBSD finally needs non-null argp[0] ... 135 136 */ 137 argp[0] = task->command; 138 argp[1] = NULL; 136 139 envp[0] = NULL; 137 argp[0] = NULL;138 140 139 141 /* -
trunk/src/sh_suidchk.c
r22 r29 525 525 fs = filesystem_type (tmpcat, tmpcat, &buf); 526 526 if (fs != NULL && 527 0 != strncmp (_("afs"), fs, 3) && 528 0 != strncmp (_("devfs"), fs, 5) && 529 0 != strncmp (_("iso9660"), fs, 7) && 530 0 != strncmp (_("lustre"), fs, 6) && 531 0 != strncmp (_("mmfs"), fs, 4) && 532 0 != strncmp (_("msdos"), fs, 5) && 527 533 0 != strncmp (_("nfs"), fs, 3) && 534 0 != strncmp (_("nosuid"), fs, 6) && 528 535 0 != strncmp (_("proc"), fs, 4) && 529 0 != strncmp (_("iso9660"), fs, 7) && 530 0 != strncmp (_("vfat"), fs, 4) && 531 0 != strncmp (_("msdos"), fs, 5) && 532 0 != strncmp (_("devfs"), fs, 5) && 533 0 != strncmp (_("nosuid"), fs, 6) 536 0 != strncmp (_("vfat"), fs, 4) 534 537 ) 535 538 { -
trunk/src/sh_unix.c
r27 r29 1451 1451 #include <arpa/inet.h> 1452 1452 1453 char * sh_unix_h_name (struct hostent * host_entry) 1454 { 1455 char ** p; 1456 if (strchr(host_entry->h_name, '.')) { 1457 return host_entry->h_name; 1458 } else { 1459 for (p = host_entry->h_aliases; *p; ++p) { 1460 if (strchr(*p, '.')) 1461 return *p; 1462 } 1463 } 1464 return host_entry->h_name; 1465 } 1466 1453 1467 /* uname() on FreeBSD is broken, because the 'nodename' buf is too small 1454 1468 * to hold a valid (leftmost) domain label. … … 1521 1535 else 1522 1536 { 1523 sl_strlcpy (sh.host.name, he1->h_name, SH_PATHBUF);1537 sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF); 1524 1538 } 1525 1539 … … 1569 1583 if (he1 != NULL) 1570 1584 { 1571 sl_strlcpy (sh.host.name, he1->h_name, SH_PATHBUF);1585 sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF); 1572 1586 } 1573 1587 else -
trunk/src/sh_utils.c
r25 r29 1340 1340 char * endptr = NULL; 1341 1341 1342 SL_ENTER(_("sh_util_obscure_ ex"));1342 SL_ENTER(_("sh_util_obscure_ok")); 1343 1343 1344 1344 if (0 == sl_strncmp("all", str, 3)) … … 1348 1348 sh_obscure_index[i] = (unsigned char)1; 1349 1349 } 1350 SL_RETURN(0, _("sh_util_obscure_ ex"));1350 SL_RETURN(0, _("sh_util_obscure_ok")); 1351 1351 } 1352 1352 … … 1359 1359 if (i > 255) 1360 1360 { 1361 SL_RETURN(-1, _("sh_util_obscure_ ex"));1361 SL_RETURN(-1, _("sh_util_obscure_ok")); 1362 1362 } 1363 1363 sh_obscure_index[i] = (unsigned char)1; … … 1370 1370 if (i > 255) 1371 1371 { 1372 SL_RETURN(-1, _("sh_util_obscure_ ex"));1372 SL_RETURN(-1, _("sh_util_obscure_ok")); 1373 1373 } 1374 1374 sh_obscure_index[i] = (unsigned char)1; … … 1376 1376 ++endptr; 1377 1377 } 1378 SL_RETURN(0, _("sh_util_obscure_ ex"));1378 SL_RETURN(0, _("sh_util_obscure_ok")); 1379 1379 } 1380 1380 1381 1381 int sh_util_obscurename (ShErrLevel level, char * name_orig, int flag) 1382 1382 { 1383 char * name =name_orig;1383 unsigned char * name = (unsigned char *) name_orig; 1384 1384 char * safe; 1385 1385 unsigned int i; … … 1393 1393 while (*name != '\0') 1394 1394 { 1395 if ( (*name) == '"' || (*name) == '\t' ||1395 if ( (*name) > 0x7F || (*name) == '"' || (*name) == '\t' || 1396 1396 (*name) == '\b' || (*name) == '\f' || 1397 1397 (*name) == '\n' || (*name) == '\r' || -
trunk/src/slib.c
r25 r29 1984 1984 { 1985 1985 TPT((0, FIL__, __LINE__, 1986 _("msg=<Error closing file.>, path=<%s>, fd=<%d> \n"),1987 ofiles[fd]->path, fd ));1986 _("msg=<Error closing file.>, path=<%s>, fd=<%d>, err=<%s>\n"), 1987 ofiles[fd]->path, fd, strerror(errno))); 1988 1988 } 1989 1989
Note:
See TracChangeset
for help on using the changeset viewer.