mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: revert my stdbuf change: the result didn't even compile
This reverts commit c1e158489d.
This commit is contained in:
1 parent
c1e158489d
commit
a4e123abd3
1 file changed
+2
-1
+2
-1
@@ -145,6 +145,7 @@ set_program_path (const char *arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
char *path;
|
||||
char tmppath[PATH_MAX + 1];
|
||||
ssize_t len = readlink ("/proc/self/exe", tmppath, sizeof (tmppath) - 1);
|
||||
if (len > 0)
|
||||
@@ -155,7 +156,7 @@ set_program_path (const char *arg)
|
||||
else if ((path = getenv ("PATH")))
|
||||
{
|
||||
char *dir;
|
||||
char *path = xstrdup (path);
|
||||
path = xstrdup (path);
|
||||
for (dir = strtok (path, ":"); dir != NULL; dir = strtok (NULL, ":"))
|
||||
{
|
||||
int req = snprintf (tmppath, sizeof (tmppath), "%s/%s", dir, arg);
|
||||
|
||||
Reference in new issue
Block a user