Magellan Linux

Annotation of /trunk/mage/patches/mage-0.4.94-busybox-etc-update.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2251 - (hide annotations) (download)
Mon Aug 12 08:24:03 2013 UTC (10 years, 9 months ago) by niro
File size: 631 byte(s)
-fixed patch
1 niro 2249 Index: mage/usr/lib/mage/etc-update
2     ===================================================================
3 niro 2251 --- mage/usr/lib/mage/etc-update (Revision 2142)
4 niro 2249 +++ mage/usr/lib/mage/etc-update (Arbeitskopie)
5 niro 2251 @@ -313,7 +313,11 @@
6     read my_input
7 niro 2249 case ${my_input} in
8     1) echo "Replacing ${ofile} with ${mfile}"
9 niro 2251 - chmod --reference=${ofile} ${mfile}
10 niro 2249 + # busybox does not support --reference
11     + if ! chmod --reference=${ofile} ${mfile} > /dev/null 2&>1
12     + then
13     + chmod $(stat -c %a ${ofile}) ${mfile}
14     + fi
15     mv ${mv_opts} ${mfile} ${ofile}
16     rm ${rm_opts} ${file}
17     return 255