cvs commit: ALFS/nALFS/src backend.c handlers.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Tue Feb 10 20:21:54 PST 2004


kpfleming    04/02/10 21:21:54

  Modified:    nALFS/src backend.c handlers.c
  Log:
  correct error message when shell command can't be executed
  correct memory allocation problem when using default shell command
  
  Revision  Changes    Path
  1.10      +1 -1      ALFS/nALFS/src/backend.c
  
  Index: backend.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/backend.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- backend.c	8 Feb 2004 05:12:35 -0000	1.9
  +++ backend.c	11 Feb 2004 04:21:54 -0000	1.10
  @@ -245,7 +245,7 @@
   
   		execvp(command, argv);
   
  -		Nprint_err("Executing command using \"sh\" failed: %s",
  +		Nprint_err("Executing command using %s failed: %s", command,
   			strerror(errno));
   
   		exit(EXIT_FAILURE);
  
  
  
  1.16      +2 -2      ALFS/nALFS/src/handlers.c
  
  Index: handlers.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- handlers.c	8 Feb 2004 05:23:58 -0000	1.15
  +++ handlers.c	11 Feb 2004 04:21:54 -0000	1.16
  @@ -409,7 +409,7 @@
   char *alloc_stage_shell(element_s *el)
   {
   	element_s *s;
  -	char *shell = "sh";
  +	char *shell;
   
   	for (s = el->parent; s; s = s->parent) {
   		if (!s->handler) continue;
  @@ -427,7 +427,7 @@
   		}
   	}
   
  -	return shell;
  +	return xstrdup("sh");
   }
   
   /* Used by the old syntax (2.0). */
  
  
  



More information about the alfs-log mailing list