Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2251 - (show 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 Index: mage/usr/lib/mage/etc-update
2 ===================================================================
3 --- mage/usr/lib/mage/etc-update (Revision 2142)
4 +++ mage/usr/lib/mage/etc-update (Arbeitskopie)
5 @@ -313,7 +313,11 @@
6 read my_input
7 case ${my_input} in
8 1) echo "Replacing ${ofile} with ${mfile}"
9 - chmod --reference=${ofile} ${mfile}
10 + # 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