Subversion Repositories HelenOS

Rev

Rev 3425 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3425 Rev 4377
Line 35... Line 35...
35
#include <stdlib.h>
35
#include <stdlib.h>
36
#include <unistd.h>
36
#include <unistd.h>
37
#include <fcntl.h>
37
#include <fcntl.h>
38
#include <dirent.h>
38
#include <dirent.h>
39
#include <sys/types.h>
39
#include <sys/types.h>
-
 
40
#include <string.h>
40
 
41
 
41
#include "config.h"
42
#include "config.h"
42
#include "errors.h"
43
#include "errors.h"
43
#include "util.h"
44
#include "util.h"
44
#include "entry.h"
45
#include "entry.h"
Line 77... Line 78...
77
            cmdname, cmdname);
78
            cmdname, cmdname);
78
        return CMD_FAILURE;
79
        return CMD_FAILURE;
79
    }
80
    }
80
 
81
 
81
    for (i = 1; i < argc; i ++) {
82
    for (i = 1; i < argc; i ++) {
82
        buff = cli_strdup(argv[i]);
83
        buff = str_dup(argv[i]);
83
        dirp = opendir(buff);
84
        dirp = opendir(buff);
84
        if (dirp) {
85
        if (dirp) {
85
            cli_error(CL_ENOTSUP, "%s is a directory", buff);
86
            cli_error(CL_ENOTSUP, "%s is a directory", buff);
86
            closedir(dirp);
87
            closedir(dirp);
87
            ret ++;
88
            ret ++;