forked from Imagelibrary/rtems
2007-07-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* nfsclient/src/dirutils.c: Use PATH_MAX instead of MAXPATHLEN.
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2007-07-27 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* nfsclient/src/dirutils.c: Use PATH_MAX instead of MAXPATHLEN.
|
||||||
|
|
||||||
|
2007-07-26 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* nfsclient/src/rpcio.c: Use size_t instead of uint32_t for message
|
||||||
|
sizes.
|
||||||
|
|
||||||
2007-07-27 Chris Johns <chrisj@rtems.org>
|
2007-07-27 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
* wrapup/Makefile.am: Create archive from a file for hosts
|
* wrapup/Makefile.am: Create archive from a file for hosts
|
||||||
|
|||||||
@@ -69,9 +69,9 @@
|
|||||||
int
|
int
|
||||||
pwd(void)
|
pwd(void)
|
||||||
{
|
{
|
||||||
char buf[MAXPATHLEN];
|
char buf[PATH_MAX];
|
||||||
|
|
||||||
if ( !getcwd(buf,MAXPATHLEN)) {
|
if ( !getcwd(buf,PATH_MAX)) {
|
||||||
perror("getcwd");
|
perror("getcwd");
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
@@ -120,7 +120,7 @@ int
|
|||||||
ls(char *dir, char *opts)
|
ls(char *dir, char *opts)
|
||||||
{
|
{
|
||||||
struct dirent *de;
|
struct dirent *de;
|
||||||
char path[MAXPATHLEN+1];
|
char path[PATH_MAX+1];
|
||||||
char *chpt;
|
char *chpt;
|
||||||
DIR *dp = 0;
|
DIR *dp = 0;
|
||||||
int rval = -1;
|
int rval = -1;
|
||||||
@@ -129,8 +129,8 @@ struct stat buf;
|
|||||||
if ( !dir )
|
if ( !dir )
|
||||||
dir = ".";
|
dir = ".";
|
||||||
|
|
||||||
strncpy(path, dir, MAXPATHLEN);
|
strncpy(path, dir, PATH_MAX);
|
||||||
path[MAXPATHLEN] = 0;
|
path[PATH_MAX] = 0;
|
||||||
chpt = path+strlen(path);
|
chpt = path+strlen(path);
|
||||||
|
|
||||||
if ( !(dp=opendir(dir)) ) {
|
if ( !(dp=opendir(dir)) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user