- Timestamp:
- May 7, 2007, 4:58:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/src/lib/sys/b_fsDirRemove.c
r2254 r3353 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- rmdir.4 * kNIX - rmdir. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * … … 58 58 */ 59 59 char szNativePath[PATH_MAX]; 60 int rc = __libc_back_fsResolve(pszPath, BACKFS_FLAGS_RESOLVE_ FULL_SYMLINK| BACKFS_FLAGS_RESOLVE_DIR, &szNativePath[0], NULL);60 int rc = __libc_back_fsResolve(pszPath, BACKFS_FLAGS_RESOLVE_PARENT | BACKFS_FLAGS_RESOLVE_DIR, &szNativePath[0], NULL); 61 61 if (rc) 62 62 LIBCLOG_RETURN_INT(rc); … … 73 73 74 74 /* 75 * OS/2 returns access denied when the directory 76 * contains files or it is not a directory. Check for 77 * directory/other and return failure accordingly. 75 * - OS/2 returns access denied when the directory contains files 76 * or it is not a directory. 77 * - OS/2 returns path not found when the directory is actually a file. 78 * 79 * So, check for directory/other and return failure accordingly. 78 80 */ 79 if (rc == ERROR_ACCESS_DENIED) 81 if ( rc == ERROR_ACCESS_DENIED 82 || rc == ERROR_PATH_NOT_FOUND) 80 83 { 81 84 struct stat s;
Note:
See TracChangeset
for help on using the changeset viewer.