Commit f3d29950 authored by Michael Smith's avatar Michael Smith

If it isn't portable, DON'T COMMIT IT TO HEAD.

Grr.

svn path=/trunk/vorbis-tools/; revision=2987
parent aa06e968
......@@ -12,9 +12,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <locale.h>
#include "getopt.h"
#include "utf8.h"
......@@ -487,12 +484,6 @@ void close_files(param_t *p)
if (p->out != NULL && p->out != stdout) fclose(p->out);
if (p->com != NULL && p->com != stdout && p->com != stdin) fclose(p->com);
if(p->tempoutfile) {
/* this is not portable to non-posix systems */
struct stat st;
stat(p->infilename, &st);
if(p->tempoutfile)
rename(p->outfilename, p->infilename);
chmod(p->infilename, st.st_mode);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment