ALT Linux Bugzilla
– Attachment 7939 Details for
Bug 35886
Миграция на /run и /run/lock
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Миграция на /run и /run/lock
run-migration.patch (text/plain), 1.49 KB, created by
Антон Мидюков
on 2019-01-12 16:45:20 MSK
(
hide
)
Description:
Миграция на /run и /run/lock
Filename:
MIME Type:
Creator:
Антон Мидюков
Created:
2019-01-12 16:45:20 MSK
Size:
1.49 KB
patch
obsolete
>diff --git a/anacron-2.3-re.patch b/anacron-2.3-re.patch >index f11ba98..9e5e80d 100644 >--- a/anacron-2.3-re.patch >+++ b/anacron-2.3-re.patch >@@ -287,8 +287,8 @@ > - free(name); > - fcntl(fd, F_SETFD, 1); /* set close-on-exec flag */ > - return fd; >-+ mkdir("/var/run/anacron", 0700); >-+ char name[] = "/var/run/anacron/XXXXXX"; >++ // mkdir("/var/run/anacron", 0700); >++ char name[] = "/run/anacron/XXXXXX"; > + int fd = mkstemp( name ); > + if ( fd < 0 ) > + die_e( "Can't create temporary file" ); >diff --git a/anacron.spec b/anacron.spec >index 145afff..e97e904 100644 >--- a/anacron.spec >+++ b/anacron.spec >@@ -1,6 +1,6 @@ > Name: anacron > Version: 2.3 >-Release: alt7 >+Release: alt8 > Epoch: 1 > > Summary: A cron-like program that doesn't go by time >@@ -19,7 +19,7 @@ Source5: anacron.service > Patch1: anacron-2.3-re.patch > Patch2: anacron-2.3-alt-lock-file.patch > >-%define lockfile %_lockdir/subsys/anacron >+%define lockfile /run/lock/subsys/anacron > > %description > Anacron (like `anac(h)ronistic') is a periodic command scheduler. It >@@ -59,7 +59,12 @@ install -pD -m644 %_sourcedir/anacron.service %buildroot%_unitdir/anacron.servic > mkdir -p %buildroot/etc/sysconfig/limits.d > ln -s crond %buildroot/etc/sysconfig/limits.d/anacron > >-mkdir -p %buildroot/var/{run,spool}/anacron >+mkdir -p %buildroot/var/spool/anacron >+ >+mkdir -p %buildroot%_tmpfilesdir/ >+cat >%buildroot%_tmpfilesdir/%name.conf<<EOF >+d /run/anacron 0700 root root - >+EOF > > for f in cron.{dai,week,month}ly; do > mkdir -p "%buildroot/etc/$f"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 35886
: 7939