Some busybox updates. See the changelog for details if you care.

-Erik
This commit is contained in:
Erik Andersen
2000-01-25 18:13:53 +00:00
parent bf3a838aac
commit 3fe39dce5d
18 changed files with 966 additions and 232 deletions

View File

@@ -175,7 +175,7 @@ copyFile( const char *srcName, const char *destName,
}
} else if (S_ISFIFO(srcStatBuf.st_mode)) {
//fprintf(stderr, "copying fifo %s to %s\n", srcName, destName);
if (mkfifo(destName, 644)) {
if (mkfifo(destName, 0644)) {
perror(destName);
return (FALSE);
}
@@ -406,7 +406,6 @@ recursiveAction(const char *fileName, int recurse, int followLinks, int depthFir
else
status = lstat(fileName, &statbuf);
status = lstat(fileName, &statbuf);
if (status < 0) {
perror(fileName);
return (FALSE);
@@ -1118,6 +1117,24 @@ findInitPid()
}
#endif
#if defined BB_GUNZIP || defined BB_GZIP || defined BB_PRINTF || defined BB_TAIL
extern void *xmalloc (size_t size)
{
void *cp = malloc (size);
if (cp == NULL) {
error("out of memory");
}
return cp;
}
extern void error(char *msg)
{
fprintf(stderr, "\n%s\n", msg);
exit(1);
}
#endif
#if (__GLIBC__ < 2) && (defined BB_SYSLOGD || defined BB_INIT)
extern int vdprintf(int d, const char *format, va_list ap)
{