summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-05-19 05:04:24 +0000
committerjsorg71 <jsorg71>2009-05-19 05:04:24 +0000
commitd9ba6c30ca0044de8663e46c4de2467d049f18e8 (patch)
treef9f690b8db3fa2d2f1d63029888cef89820176fa /common
parent23ffdb0c5fe0315d9d237f168e7d72abe0ba422c (diff)
downloadxrdp-proprietary-d9ba6c30ca0044de8663e46c4de2467d049f18e8.tar.gz
xrdp-proprietary-d9ba6c30ca0044de8663e46c4de2467d049f18e8.zip
remove g_set_file_rights since g_file_open sets the bits right
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c17
-rw-r--r--common/os_calls.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 2a2184b7..ba9ec4b8 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1087,23 +1087,6 @@ g_file_lock(int fd, int start, int len)
}
/*****************************************************************************/
-/* returns error, always zero */
-int APP_CC
-g_set_file_rights(const char* filename, int read, int write)
-{
-#if defined(_WIN32)
- return 0;
-#else
- int flags;
-
- flags = read ? S_IRUSR : 0;
- flags |= write ? S_IWUSR : 0;
- chmod(filename, flags);
- return 0;
-#endif
-}
-
-/*****************************************************************************/
/* returns error */
int APP_CC
g_chmod_hex(const char* filename, int flags)
diff --git a/common/os_calls.h b/common/os_calls.h
index 751734fd..5f84694d 100644
--- a/common/os_calls.h
+++ b/common/os_calls.h
@@ -129,8 +129,6 @@ g_file_seek(int fd, int offset);
int APP_CC
g_file_lock(int fd, int start, int len);
int APP_CC
-g_set_file_rights(const char* filename, int read, int write);
-int APP_CC
g_chmod_hex(const char* filename, int flags);
int APP_CC
g_mkdir(const char* dirname);