aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2003-01-16 13:27:58 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2003-01-16 13:27:58 +0000
commitdcb4f239cd60033474283c2b022ff12c2a64aa0f (patch)
tree0e65349a365c3f5bbce0d936970c40a7b64de8c8 /libexec
parente2ad5d6e8c940a925c6f6be9fc82dbb5fdc02314 (diff)
downloadsrc-dcb4f239cd60033474283c2b022ff12c2a64aa0f.tar.gz
src-dcb4f239cd60033474283c2b022ff12c2a64aa0f.zip
Replace the instances of literal "/bin/ls"
with the _PATH_LS macro to be consistent with the rest of the ftpd(8) source.
Notes
Notes: svn path=/head/; revision=109380
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpcmd.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index 22ae19af10c2..620154699746 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -72,6 +72,7 @@ static const char rcsid[] =
#include <unistd.h>
#include "extern.h"
+#include "pathnames.h"
extern union sockunion data_dest, his_addr;
extern int logged_in;
@@ -484,12 +485,12 @@ cmd
| LIST check_login CRLF
{
if ($2)
- retrieve("/bin/ls -lgA", "");
+ retrieve(_PATH_LS " -lgA", "");
}
| LIST check_login SP pathstring CRLF
{
if ($2)
- retrieve("/bin/ls -lgA %s", $4);
+ retrieve(_PATH_LS " -lgA %s", $4);
free($4);
}
| STAT check_login SP pathname CRLF