summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
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/os_calls.c
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/os_calls.c')
-rw-r--r--common/os_calls.c17
1 files changed, 0 insertions, 17 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)