Skip to content

Commit

Permalink
rm obsolete /usr/5bin paths (Solaris patch 130-CR7019368)
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Jan 8, 2021
1 parent bae02c3 commit 744e68e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cmd/INIT/regress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ esac
export COLUMNS=80
SOURCE=$PWD
PATH=$SOURCE:${PATH#?(.):}
PATH=${PATH%%:?(.)}:/usr/5bin:/bin:/usr/bin
PATH=${PATH%%:?(.)}:/bin:/usr/bin
UNIT=$1
shift
if [[ -f $UNIT && ! -x $UNIT ]]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/libast/comp/mkdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mkdir(const char* path, mode_t mode)
register int n;
char* av[3];

static char* cmd[] = { "/bin/mkdir", "/usr/5bin/mkdir", 0 };
static char* cmd[] = { "/bin/mkdir", 0 };


n = errno;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/libast/comp/rmdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rmdir(const char* path)
struct stat st;
char* av[3];

static char* cmd[] = { "/bin/rmdir", "/usr/5bin/rmdir", 0 };
static char* cmd[] = { "/bin/rmdir", 0 };

if (stat(path, &st) < 0) return(-1);
if (!S_ISDIR(st.st_mode))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/libast/port/astconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ initialize(register Feature_t* fp, const char* path, const char* command, const
}
if (fp->op == OP_universe)
{
if (strneq(p, "xpg", 3) || strneq(p, "5bin", 4))
if (strneq(p, "xpg", 3))
{
ok = 1;
break;
Expand Down

0 comments on commit 744e68e

Please sign in to comment.