[comp.os.minix] ST/PC V1.5.0 mv bug fix

schiers@imdm.uke.uni-hamburg.dbp.de (Carsten Schiers) (02/12/90)

There is a bug (a small one, yes) in the /usr/src/commands/mv.c command.
This seems to be he only command, which tries an execl only on the root
/bin directory, when using cp. Since I hate ram-disks (due to bad, non
reset resisdent and information loosing ones), I have nearly nothing in
/bin but in /usr/bin. mv then says: can not move ... A fix is included.
                                                              
Carsten Schiers
---------------------------------------------
DFNet:    schiers@imdm.uke.uni-hamburg.dbp.de
Usenet:   unido!imdm.uke.uni-hamburg.dbp.de!schiers
Bitnet:   schiers%imdm.uke.uni-hamburg.dbp.de@dfngate
Internet: schiers%imdm.uke.uni-hamburg.dbp.de@relay.cs.net

-------------------------- cut here --------------------------
*** mv.c.150	Sat Feb 10 16:35:04 1990
--- mv.c	Sat Feb 10 16:34:34 1990
***************
*** 133,138 ****
--- 133,139 ----
  			setgid(getgid());
  			setuid(getuid());
  			execl("/bin/cp", "cp", old, new, (char *) 0);
+ 			execl("/usr/bin/cp", "cp", old, new, (char *) 0);
  			cant(old);
  		    case -1:
  			std_err("mv: can't fork\n");