mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Replace the instances of literal "/bin/ls"
with the _PATH_LS macro to be consistent with the rest of the ftpd(8) source.
This commit is contained in:
parent
e2ad5d6e8c
commit
dcb4f239cd
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue