%prep
%setup -q -n %{name}-%{version}
+sed -i 's|TZ_SYS_CONFIG|%{TZ_SYS_CONFIG}|g' %{SOURCE1001}
cp %{SOURCE1001} .
%build
%{_bindir}/vconf-init
%config(missingok) %attr(644,root,root) %{TZ_SYS_CONFIG}/kdb_first_boot
%{_libdir}/*.so.*
-%dir %attr(777,root,root) %{TZ_SYS_CONFIG}/db
+%dir %attr(777,root,%TZ_SYS_USER_GROUP) %{TZ_SYS_CONFIG}/db
%dir %attr(777,root,root) %{TZ_SYS_CONFIG}/db/.backup
%{_unitdir}/basic.target.wants/vconf-setup.service
%{_unitdir}/vconf-setup.service
if (access(szPath, F_OK) != 0) {
/* fprintf(stderr,"parent dir does not exist\n"); */
- snprintf(szCmd, BUFSIZE, "/bin/mkdir %s -p --mode=755", szPath);
+ snprintf(szCmd, BUFSIZE, "/bin/mkdir %s -p --mode=775", szPath);
disable_invalid_char(szCmd);
if (__system(szCmd)) {
fprintf(stderr,"[%s:%d]Fail mkdir() szCmd=%s\n", __FILE__, __LINE__, szCmd);
return -1;
}
+ snprintf(szCmd, BUFSIZE, "/bin/chgrp %s %s",tzplatform_getenv(TZ_SYS_USER_GROUP), szPath);
+ if (__system(szCmd)) {
+ fprintf(stderr,"[%s:%d]Fail chgrp() szCmd=%s\n", __FILE__, __LINE__, szCmd);
+ return -1;
+ }
+
}
create_file = 1;