Skip to content

Commit

Permalink
Removed some FIXMEs that aren't valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 6, 2017
1 parent 1d6c519 commit 0287160
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/physfs.c
Expand Up @@ -2882,7 +2882,7 @@ int PHYSFS_stat(const char *_fname, PHYSFS_Stat *stat)
stat->createtime = -1;
stat->accesstime = -1;
stat->filetype = PHYSFS_FILETYPE_OTHER;
stat->readonly = 1; /* !!! FIXME */
stat->readonly = 1;

if (sanitizePlatformIndependentPath(_fname, fname))
{
Expand All @@ -2904,7 +2904,7 @@ int PHYSFS_stat(const char *_fname, PHYSFS_Stat *stat)
if (exists)
{
stat->filetype = PHYSFS_FILETYPE_DIRECTORY;
stat->readonly = 1; /* !!! FIXME */
stat->readonly = 1;
retval = 1;
} /* if */
else if (verifyPath(i, &arcfname, 0))
Expand Down
2 changes: 0 additions & 2 deletions src/physfs_archiver_zip.c
Expand Up @@ -1637,8 +1637,6 @@ static int ZIP_stat(void *opaque, const char *filename, PHYSFS_Stat *stat)
ZIPinfo *info = (ZIPinfo *) opaque;
const ZIPentry *entry = zip_find_entry(info, filename);

/* !!! FIXME: does this need to resolve entries here? */

if (entry == NULL)
return 0;

Expand Down
2 changes: 1 addition & 1 deletion src/physfs_platform_macos.c
@@ -1,5 +1,5 @@
/*
* Mac OS X support routines for PhysicsFS.
* macOS (iOS, etc) support routines for PhysicsFS.
*
* Please see the file LICENSE.txt in the source's root directory.
*
Expand Down
3 changes: 1 addition & 2 deletions src/physfs_platform_posix.c
Expand Up @@ -331,8 +331,7 @@ int __PHYSFS_platformStat(const char *filename, PHYSFS_Stat *st)
st->createtime = statbuf.st_ctime;
st->accesstime = statbuf.st_atime;

/* !!! FIXME: maybe we should just report full permissions? */
st->readonly = access(filename, W_OK);
st->readonly = (access(filename, W_OK) == -1);
return 1;
} /* __PHYSFS_platformStat */

Expand Down
2 changes: 0 additions & 2 deletions src/physfs_platform_unix.c
Expand Up @@ -118,8 +118,6 @@ void __PHYSFS_platformDetectAvailableCDs(PHYSFS_StringCallback cb, void *data)
else if (strcmp(ent->mnt_type, "supermount") == 0)
add_it = 1;

/* !!! FIXME: udf? automount? */

/* add other mount types here */

if (add_it)
Expand Down
3 changes: 0 additions & 3 deletions src/physfs_platform_windows.c
Expand Up @@ -196,7 +196,6 @@ static PHYSFS_ErrorCode errcodeFromWinApiError(const DWORD err)
case ERROR_WRITE_FAULT: return PHYSFS_ERR_IO;
case ERROR_READ_FAULT: return PHYSFS_ERR_IO;
case ERROR_DEV_NOT_EXIST: return PHYSFS_ERR_IO;
/* !!! FIXME: ?? case ELOOP: return PHYSFS_ERR_SYMLINK_LOOP; */
case ERROR_BUFFER_OVERFLOW: return PHYSFS_ERR_BAD_FILENAME;
case ERROR_INVALID_NAME: return PHYSFS_ERR_BAD_FILENAME;
case ERROR_BAD_PATHNAME: return PHYSFS_ERR_BAD_FILENAME;
Expand All @@ -207,8 +206,6 @@ static PHYSFS_ErrorCode errcodeFromWinApiError(const DWORD err)
case ERROR_INVALID_DRIVE: return PHYSFS_ERR_NOT_FOUND;
case ERROR_HANDLE_DISK_FULL: return PHYSFS_ERR_NO_SPACE;
case ERROR_DISK_FULL: return PHYSFS_ERR_NO_SPACE;
/* !!! FIXME: ?? case ENOTDIR: return PHYSFS_ERR_NOT_FOUND; */
/* !!! FIXME: ?? case EISDIR: return PHYSFS_ERR_NOT_A_FILE; */
case ERROR_WRITE_PROTECT: return PHYSFS_ERR_READ_ONLY;
case ERROR_LOCK_VIOLATION: return PHYSFS_ERR_BUSY;
case ERROR_SHARING_VIOLATION: return PHYSFS_ERR_BUSY;
Expand Down

0 comments on commit 0287160

Please sign in to comment.