Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
43a3c498
Commit
43a3c498
authored
24 years ago
by
Fredrik Noring
Browse files
Options
Downloads
Patches
Plain Diff
Quick fix to make it work with 7.1 (changed array->mixed for file_stat variables).
Rev: NT/tools/lib.pike:1.17
parent
cfa9c77a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NT/tools/lib.pike
+4
-4
4 additions, 4 deletions
NT/tools/lib.pike
with
4 additions
and
4 deletions
NT/tools/lib.pike
+
4
−
4
View file @
43a3c498
...
@@ -12,7 +12,7 @@ void exece(string cmd, array(string) args)
...
@@ -12,7 +12,7 @@ void exece(string cmd, array(string) args)
string fixpath(string s)
string fixpath(string s)
{
{
string mnt=getenv("NTMOUNT");
string mnt=getenv("NTMOUNT");
array
st;
mixed
st;
while ((st = file_stat(s, 1)) && (st[1] == -3)) {
while ((st = file_stat(s, 1)) && (st[1] == -3)) {
string new_s = readlink(s);
string new_s = readlink(s);
...
@@ -392,7 +392,7 @@ string find_next_in_path(string argv0,string cmd)
...
@@ -392,7 +392,7 @@ string find_next_in_path(string argv0,string cmd)
foreach((getenv("PATH")||"")/":",string x)
foreach((getenv("PATH")||"")/":",string x)
{
{
string fname=combine_path(getcwd(),x,cmd);
string fname=combine_path(getcwd(),x,cmd);
if(
array
s=file_stat(fname))
if(
mixed
s=file_stat(fname))
{
{
if(argv0)
if(argv0)
{
{
...
@@ -407,7 +407,7 @@ string find_next_in_path(string argv0,string cmd)
...
@@ -407,7 +407,7 @@ string find_next_in_path(string argv0,string cmd)
foreach((getenv("PATH")||"")/":",string x)
foreach((getenv("PATH")||"")/":",string x)
{
{
string fname=combine_path(getcwd(),x,cmd);
string fname=combine_path(getcwd(),x,cmd);
if(
array
s=file_stat(fname))
if(
mixed
s=file_stat(fname))
{
{
if(Stdio.File(fname,"r")->read(2)=="#!")
if(Stdio.File(fname,"r")->read(2)=="#!")
continue;
continue;
...
@@ -419,7 +419,7 @@ string find_next_in_path(string argv0,string cmd)
...
@@ -419,7 +419,7 @@ string find_next_in_path(string argv0,string cmd)
foreach((getenv("PATH")||"")/":",string x)
foreach((getenv("PATH")||"")/":",string x)
{
{
string fname=combine_path(getcwd(),x,cmd);
string fname=combine_path(getcwd(),x,cmd);
if(
array
s=file_stat(fname))
if(
mixed
s=file_stat(fname))
return fname;
return fname;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment