Mirror of git://git.busybox.net/busybox with our patches on top
Source
51
51
while(argc-- > 0) {
52
52
path_n = path_list;
53
53
argv++;
54
54
found = 0;
55
55
for (i = 0; i < count; i++) {
56
56
char *buf;
57
57
buf = concat_path_file(path_n, *argv);
58
58
if (stat (buf, &filestat) == 0
59
59
&& filestat.st_mode & S_IXUSR)
60
60
{
61
-
printf ("%s\n", buf);
61
+
puts(buf);
62
62
found = 1;
63
63
break;
64
64
}
65
65
free(buf);
66
66
path_n += (strlen(path_n) + 1);
67
67
}
68
68
if (!found)
69
69
status = EXIT_FAILURE;
70
70
}
71
71
return status;