mirror of https://github.com/snes9xgit/snes9x.git
Remove an improper use of chown.
This commit is contained in:
parent
a3ec0e67a0
commit
dfdf197b27
|
@ -311,13 +311,7 @@ S9xOpenSnapshotFile (const char *fname, bool8 read_only, STREAM *file)
|
||||||
{
|
{
|
||||||
if ((*file = OPEN_STREAM (filename, "wb")))
|
if ((*file = OPEN_STREAM (filename, "wb")))
|
||||||
{
|
{
|
||||||
if (chown (filename, getuid (), getgid ()) < 0)
|
return (TRUE);
|
||||||
{
|
|
||||||
fprintf (stderr, "Couldn't set ownership of file.\n");
|
|
||||||
return (FALSE);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return (TRUE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue