pike.git/
NT/
tools/
lib.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-02-03
2000-02-03 02:47:20 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
fbb55b3aa9ea25c1aa17d51a4f7e11c9fab9c310 (
11
lines) (+
11
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
may now work if NTMOUNT is not /
Rev: NT/tools/lib.pike:1.9
74:
string mnt=getenv("NTMOUNT"); if(mnt && strlen(mnt)) tmp=replace(tmp,mnt,""); cmd=({getenv("NTDRIVE")+replace(tmp,"/","\\")})+cmd;
+
+
#if 1
+
/* Experimental */
+
if(mnt && strlen(mnt)>1)
+
{
+
for(int e=1;e<sizeof(cmd);e++)
+
cmd[e]=replace(cmd[e],mnt,getenv("NTDRIVE"));
+
}
+
#endif
+
if(!f->connect(getenv("NTHOST"),(int)getenv("NTPORT"))) { werror("Failed to connect "+strerror(errno())+".\n");