summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.14.1-ash.patch
blob: eee0542391bd16fb7288b1c5020f84871be34771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -urpN busybox-1.14.1/shell/ash.c busybox-1.14.1-ash/shell/ash.c
--- busybox-1.14.1/shell/ash.c	2009-05-27 18:00:23.000000000 +0200
+++ busybox-1.14.1-ash/shell/ash.c	2009-06-14 19:44:24.000000000 +0200
@@ -11909,7 +11909,8 @@ find_dot_file(char *name)
 			 */
 			return fullname;
 		}
-		stunalloc(fullname);
+		if (fullname != name)
+			stunalloc(fullname);
 	}
 
 	/* not found in the PATH */