Changeset 9353
- Timestamp:
- 06/19/12 13:34:02 (12 months ago)
- Location:
- trunk
- Files:
-
- 8 modified
-
install-windows/OrangeFS-Client/Script Files/Setup.Rul (modified) (3 diffs)
-
src/client/windows/client-service/client-service.h (modified) (1 diff)
-
src/client/windows/client-service/config.c (modified) (3 diffs)
-
src/client/windows/client-service/dokan-interface.c (modified) (4 diffs)
-
src/client/windows/client-service/fs.c (modified) (4 diffs)
-
src/client/windows/client-service/fs.h (modified) (2 diffs)
-
src/common/gen-locks/gen-locks.h (modified) (1 diff)
-
src/common/misc/realpath.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/install-windows/OrangeFS-Client/Script Files/Setup.Rul
r9314 r9353 104 104 nResult = SdWelcome(szTitle, szMsg); 105 105 if (nResult = BACK) goto Dlg_SdWelcome; 106 107 Dlg_SdLicense: 108 szQuestion = ""; 109 nResult = SdLicense(szTitle, szMsg, szQuestion, "license.txt"); 110 if (nResult = BACK) goto Dlg_SdWelcome; 111 106 107 szTitle = ""; 108 svName = ""; 109 svCompany = ""; 112 110 /* 113 111 Dlg_SdRegisterUser: … … 142 140 Dlg_SdAskDestPath: 143 141 nResult = SdAskDestPath(szTitle, szMsg, INSTALLDIR, 0); 144 if (nResult = BACK) goto Dlg_Sd License;142 if (nResult = BACK) goto Dlg_SdWelcome; 145 143 /* 146 144 Dlg_SdFeatureTree: … … 409 407 SdFinishReboot ( szTitle , szMsg1 , SYS_BOOTMACHINE , szMsg2 , 0 ); 410 408 else 411 szMsg2 = "Documentation is available in " + (INSTALLDIR ^ "Doc") + ".";412 409 szOpt1 = "Start the OrangeFS services"; 413 410 bOpt1 = TRUE; -
trunk/src/client/windows/client-service/client-service.h
r8941 r9353 40 40 char ca_path[MAX_PATH]; 41 41 int threads; 42 unsigned int new_file_perms, 43 new_dir_perms; 42 44 int debug; 43 45 int debug_stderr; -
trunk/src/client/windows/client-service/config.c
r8970 r9353 382 382 } 383 383 384 /* new file/dir permissions 385 * 0755 = rwxr-xr-x 386 */ 387 options->new_file_perms = options->new_dir_perms = 0755; 388 384 389 /* default LDAP options */ 385 390 options->ldap.search_scope = LDAP_SCOPE_ONELEVEL; … … 399 404 { 400 405 FILE *config_file; 401 char line[256], copy[256], *token, *p ;406 char line[256], copy[256], *token, *p, *endptr; 402 407 int ret = 0, debug_file_flag = FALSE; 408 long mask; 403 409 404 410 config_file = open_config_file(error_msg, error_msg_len); … … 540 546 ret = -1; 541 547 goto get_config_exit; 548 } 549 } 550 else if (!stricmp(token, "new-file-perms") || 551 !stricmp(token, "new-dir-perms")) 552 { 553 p = line + strlen(token); 554 EAT_WS(p); 555 /* get mask in octal format */ 556 mask = strtol(p, &endptr, 8); 557 if (!mask || *endptr != '\0') 558 { 559 _snprintf(error_msg, error_msg_len, 560 "Configuration file (fatal): " 561 "%s option: parse error - value must be " 562 "nonzero octal integer\n", token); 563 ret = -1; 564 goto get_config_exit; 565 } 566 if (!stricmp(token, "new-file-perms")) 567 { 568 options->new_file_perms = (unsigned int) mask; 569 } 570 else 571 { 572 options->new_dir_perms = (unsigned int) mask; 542 573 } 543 574 } -
trunk/src/client/windows/client-service/dokan-interface.c
r9056 r9353 835 835 fs_remove(fs_path, &credentials); 836 836 } 837 ret = fs_create(fs_path, &credentials, &handle); 837 ret = fs_create(fs_path, &credentials, &handle, 838 goptions->new_file_perms); 838 839 break; 839 840 case CREATE_NEW: … … 846 847 { 847 848 /* create file */ 848 ret = fs_create(fs_path, &credentials, &handle); 849 ret = fs_create(fs_path, &credentials, &handle, 850 goptions->new_file_perms); 849 851 } 850 852 break; … … 853 855 { 854 856 /* create file */ 855 ret = fs_create(fs_path, &credentials, &handle); 857 ret = fs_create(fs_path, &credentials, &handle, 858 goptions->new_file_perms); 856 859 } 857 860 break; … … 932 935 return -1; 933 936 934 ret = fs_mkdir(fs_path, &credentials, &handle );937 ret = fs_mkdir(fs_path, &credentials, &handle, goptions->new_dir_perms); 935 938 936 939 DbgPrint(" fs_mkdir returns: %d\n", ret); -
trunk/src/client/windows/client-service/fs.c
r9034 r9353 239 239 int fs_create(char *fs_path, 240 240 PVFS_credentials *credentials, 241 PVFS_handle *handle) 241 PVFS_handle *handle, 242 unsigned int perms) 242 243 { 243 244 char *base_dir, *entry_name; … … 279 280 attr.owner = credentials->uid; 280 281 attr.group = credentials->gid; 281 /* default permissions: rwxr-xr-x*/282 attr.perms = 0755;282 /* configurable in options */ 283 attr.perms = perms; 283 284 attr.atime = attr.mtime = attr.ctime = time(NULL); 284 285 … … 498 499 int fs_mkdir(char *fs_path, 499 500 PVFS_credentials *credentials, 500 PVFS_handle *handle) 501 PVFS_handle *handle, 502 unsigned int perms) 501 503 { 502 504 char *base_dir, *entry_name; … … 535 537 attr.owner = credentials->uid; 536 538 attr.group = credentials->gid; 537 /* default permissions: rwxr-xr-x*/538 attr.perms = 0755;539 /* configurable in options */ 540 attr.perms = perms; 539 541 attr.atime = attr.mtime = attr.ctime = time(NULL); 540 542 -
trunk/src/client/windows/client-service/fs.h
r8941 r9353 30 30 int fs_create(char *fs_path, 31 31 PVFS_credentials *credentials, 32 PVFS_handle *handle); 32 PVFS_handle *handle, 33 unsigned int perms); 33 34 34 35 int fs_remove(char *fs_path, … … 53 54 int fs_mkdir(char *fs_path, 54 55 PVFS_credentials *credentials, 55 PVFS_handle *handle); 56 PVFS_handle *handle, 57 unsigned int perms); 56 58 57 59 int fs_io(enum PVFS_io_type io_type, -
trunk/src/common/gen-locks/gen-locks.h
r9189 r9353 22 22 23 23 #include <stdlib.h> 24 #ifndef WIN32 25 #include <unistd.h> 26 #endif 24 27 25 28 /* we will make posix locks the default unless turned off for now. */ -
trunk/src/common/misc/realpath.c
r9149 r9353 33 33 #ifndef WIN32 34 34 #include <unistd.h> 35 #endif36 35 #include <sys/syscall.h> 36 #endif 37 37 #include <string.h> 38 38 #include <errno.h>
