Remy Bohmer wrote:
> Ptxdist just makes a copy of the config file, but it actually needs
> a writable copy of the config file
> 
> Signed-off-by: Remy Bohmer <[email protected]>
> ---
>  scripts/lib/ptxd_lib_cfgchg.sh |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/lib/ptxd_lib_cfgchg.sh b/scripts/lib/ptxd_lib_cfgchg.sh
> index 8ec0b26..02cffb1 100644
> --- a/scripts/lib/ptxd_lib_cfgchg.sh
> +++ b/scripts/lib/ptxd_lib_cfgchg.sh
> @@ -78,5 +78,6 @@ ptxd_cfgchg()
>       fi
>  
>       cp "${cfg_orig}" "${cfg_old}" || return
> +     chmod a+w "${cfg_old}" || return

hmmm...what about using "install -m644" for this?

>      done
>  }

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
ptxdist mailing list
[email protected]

Reply via email to