1 diff -r -U3 coreutils-5.0/src/Makefile.in coreutils-5.0-patched/src/Makefile.in
2 --- coreutils-5.0/src/Makefile.in 2003-04-02 07:46:19.000000000 -0700
3 +++ coreutils-5.0-patched/src/Makefile.in 2019-08-01 19:38:07.440997426 -0600
5 printf_LDADD = $(LDADD) @POW_LIB@ @LIBICONV@
7 # If necessary, add -lm to resolve use of floor, rint, modf.
8 -seq_LDADD = $(LDADD) @SEQ_LIBM@
9 +seq_LDADD = $(LDADD) @SEQ_LIBM@ -lm
11 # If necessary, add -lm to resolve the `pow' reference in lib/strtod.c
12 # or for the fesetround reference in programs using nanosec.c.
13 diff -r -U3 coreutils-5.0/src/tee.c coreutils-5.0-patched/src/tee.c
14 --- coreutils-5.0/src/tee.c 2002-12-15 07:21:45.000000000 -0700
15 +++ coreutils-5.0-patched/src/tee.c 2019-08-01 19:34:32.374301325 -0600
18 #define AUTHORS N_ ("Mike Parker, Richard M. Stallman, and David MacKenzie")
20 -static int tee (int nfiles, const char **files);
21 +static int tee_FOO (int nfiles, const char **files);
23 /* If nonzero, append to output files rather than truncating them. */
26 /* Do *not* warn if tee is given no file arguments.
27 POSIX requires that it work when given no arguments. */
29 - errs = tee (argc - optind, (const char **) &argv[optind]);
30 + errs = tee_FOO (argc - optind, (const char **) &argv[optind]);
31 if (close (STDIN_FILENO) != 0)
32 error (EXIT_FAILURE, errno, _("standard input"));
35 Return 0 if successful, 1 if any errors occur. */
38 -tee (int nfiles, const char **files)
39 +tee_FOO (int nfiles, const char **files)
43 diff -r -U3 coreutils-5.0/src/test.c coreutils-5.0-patched/src/test.c
44 --- coreutils-5.0/src/test.c 2003-02-10 02:19:09.000000000 -0700
45 +++ coreutils-5.0-patched/src/test.c 2019-08-01 19:35:52.871307966 -0600
47 /* Do the same thing access(2) does, but use the effective uid and gid. */
50 -eaccess (char const *file, int mode)
51 +eaccess_FOO (char const *file, int mode)
54 static uid_t uid, euid;
57 case 'r': /* file is readable? */
59 - value = -1 != eaccess (argv[pos - 1], R_OK);
60 + value = -1 != eaccess_FOO (argv[pos - 1], R_OK);
61 return (TRUE == value);
63 case 'w': /* File is writable? */
65 - value = -1 != eaccess (argv[pos - 1], W_OK);
66 + value = -1 != eaccess_FOO (argv[pos - 1], W_OK);
67 return (TRUE == value);
69 case 'x': /* File is executable? */
71 - value = -1 != eaccess (argv[pos - 1], X_OK);
72 + value = -1 != eaccess_FOO (argv[pos - 1], X_OK);
73 return (TRUE == value);
75 case 'O': /* File is owned by you? */