← Commit list

5c2bbb55d

Matt Kraai
Matt Kraai
2001-11-12
TIMEOUT Duration: 656s

Subject

Remove unnecessary errno handling.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

$ git checkout -f 5c2bbb55d7ad0ffc36261bb1b46da1aa24487448
Previous HEAD position was 26f8e95d2 David Kimdon <[email protected]> noticed a thinko in md5sum where only binary sums were verified.  He also sent in this patch,  -Erik
HEAD is now at 5c2bbb55d Remove unnecessary errno handling.

$ git clean -fdx
Removing include/config/
Removing scripts/lxdialog/checklist.o
Removing scripts/lxdialog/inputbox.o
Removing scripts/lxdialog/lxdialog
Removing scripts/lxdialog/lxdialog.o
Removing scripts/lxdialog/menubox.o
Removing scripts/lxdialog/msgbox.o
Removing scripts/lxdialog/textbox.o
Removing scripts/lxdialog/util.o
Removing scripts/lxdialog/yesno.o

$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh defconfig
make: *** No rule to make target 'defconfig'.  Stop.

$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh allnoconfig
make: *** No rule to make target 'allnoconfig'.  Stop.

$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh include/bb_config.h
make: *** No rule to make target 'include/bb_config.h'.  Stop.

$ make SHELL=/bin/bash CC=/root/asi_db/compat/cc-wrapper.sh HOSTCC=/root/asi_db/compat/cc-wrapper.sh -j3 V=1

[TIMEOUT]

Commit Diff GitHub →

libbb/xgetcwd.c+0 -5
@@ -27,24 +27,19 @@ xgetcwd (char *cwd)
char *ret;
unsigned path_max;
- errno = 0;
path_max = (unsigned) PATH_MAX;
path_max += 2; /* The getcwd docs say to do this. */
if(cwd==0)
cwd = xmalloc (path_max);
- errno = 0;
while ((ret = getcwd (cwd, path_max)) == NULL && errno == ERANGE) {
path_max += PATH_INCR;
cwd = xrealloc (cwd, path_max);
- errno = 0;
}
if (ret == NULL) {
- int save_errno = errno;
free (cwd);
- errno = save_errno;
perror_msg("getcwd()");
return NULL;
}