VirtualBox

Changeset 29787 in vbox


Ignore:
Timestamp:
May 25, 2010 2:16:44 PM (15 years ago)
Author:
vboxsync
Message:

filesplitter: yet better test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/filesplitter.cpp

    r29769 r29787  
    5555
    5656        struct stat lStat;
    57         if (    stat(argv[2], &lStat) != 0
    58                 || ((lStat.st_mode & S_IFDIR) == 0))
     57        if (    stat(argv[2], &lStat) != 0 
     58                || ((lStat.st_mode & S_IFDIR) != S_IFDIR))
    5959        {
    60             fprintf(stderr, "filesplitter: Given argument \"%s\" is not a valid directory.\n", argv[2]);
     60            fprintf(stderr, "filesplitter: Given argument \"%s\" is not a valid directory %x %x.\n", argv[2], lStat.st_mode, errno);
    6161            rc = 2;
    6262            break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette