delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/20/14:39:04

Message-ID: <39A0252F.D9DB130A@softhome.net>
Date: Sun, 20 Aug 2000 20:36:31 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Symlink support in dosexec.c
Reply-To: djgpp-workers AT delorie DOT com

I've following little problem:
should this code pass argv[0] as 'args.exe'?

   symlink("args.exe", "linkargs.exe");
   spawnl(P_WAIT, "linkargs.exe", "args.exe", "oh", "well", NULL);

If yes, (I assumed that), then the following code in go32_exec() worries me:

  save_argv0 = argv[0];
  argv[0] = unconst(program, char *); /* since that's where we really found it */

Could anyone put some light on this?

Laurynas

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019