Changeset 77859 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 24, 2019 2:36:08 AM (6 years ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r77858 r77859 1297 1297 } else { 1298 1298 int const vrc = rc; 1299 rc = -RTErrConvertToErrno(rc); 1299 if (vrc == VERR_WRITE_PROTECT) 1300 rc = -EPERM; /* EPERM: Symlink creation not supported according to the linux manpage as of 2017-09-15. 1301 "VBoxInternal2/SharedFoldersEnableSymlinksCreate/<share>" is not 1. */ 1302 else 1303 rc = -RTErrConvertToErrno(vrc); 1300 1304 SFLOGFLOW(("vbsf_inode_symlink: VbglR0SfHostReqCreateSymlinkContig failed for '%s' -> '%s': %Rrc (-> %d)\n", 1301 1305 pPath->String.ach, pTarget->String.ach, vrc, rc)); -
trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c
r77858 r77859 298 298 }; 299 299 300 -
trunk/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c
r77739 r77859 82 82 long long int val = strtoll(s, &endptr, base); 83 83 84 if (val < INT_MIN || val > INT_MAX || endptr < s + size) 84 if ( val < INT_MIN 85 || ( val > INT_MAX 86 && (base != 8 || val != UINT_MAX) ) /* hack for printf("%o", -1) - 037777777777 */ 87 || endptr < s + size) 85 88 { 86 89 errno = ERANGE; 87 panic_err("could not convert %.*s to integer, result = % d",88 (int)size, s, (int)val);90 panic_err("could not convert %.*s to integer, result = %lld (%d)", 91 (int)size, s, val, (int)val); 89 92 } 90 93 return (int)val; -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
r77858 r77859 193 193 if (info->nls_name[0]) { 194 194 if (_IS_UTF8(info->nls_name)) { 195 SFLOGFLOW(("vbsf_super_info_alloc_and_map_it: nls=utf8\n")); 195 196 sf_g->nls = NULL; 196 197 } else { … … 213 214 sf_g->nls = load_nls_default(); 214 215 SFLOGFLOW(("vbsf_super_info_alloc_and_map_it: CONFIG_NLS_DEFAULT=%s -> %p\n", CONFIG_NLS_DEFAULT, sf_g->nls)); 215 } else 216 } else { 217 SFLOGFLOW(("vbsf_super_info_alloc_and_map_it: nls=utf8 (default %s)\n", CONFIG_NLS_DEFAULT)); 216 218 sf_g->nls = NULL; 219 } 217 220 #else 221 SFLOGFLOW(("vbsf_super_info_alloc_and_map_it: nls=utf8 (no default)\n")); 218 222 sf_g->nls = NULL; 219 223 #endif … … 708 712 struct vbsf_super_info *sf_g = VBSF_GET_SUPER_INFO(sb); 709 713 if (sf_g) { 710 seq_printf(m, ",uid=%u,gid=%u,ttl=%d,dmode=0%o,fmode=0%o,dmask=0%o,fmask=0%o,maxiopages=%u", 711 sf_g->uid, sf_g->gid, sf_g->ttl_msec, sf_g->dmode, sf_g->fmode, sf_g->dmask, 712 sf_g->fmask, sf_g->cMaxIoPages); 714 seq_printf(m, ",uid=%u,gid=%u,ttl=%d,maxiopages=%u,iocharset=%s", 715 sf_g->uid, sf_g->gid, sf_g->ttl_msec, sf_g->cMaxIoPages, sf_g->nls ? sf_g->nls->charset : "utf8"); 716 if (sf_g->dmode != ~0) 717 seq_printf(m, ",dmode=0%o", sf_g->dmode); 718 if (sf_g->fmode != ~0) 719 seq_printf(m, ",fmode=0%o", sf_g->fmode); 720 if (sf_g->dmask != 0) 721 seq_printf(m, ",dmask=0%o", sf_g->dmask); 722 if (sf_g->fmask != 0) 723 seq_printf(m, ",fmask=0%o", sf_g->fmask); 713 724 if (sf_g->tag[0] != '\0') { 714 725 seq_puts(m, ",tag=");
Note:
See TracChangeset
for help on using the changeset viewer.