All of lore.kernel.org
 help / color / mirror / Atom feed
* why cp in do_install() change file permission mode?
@ 2010-12-02 10:16 Lu, Lianhao
  2010-12-02 13:55 ` Bruce Ashfield
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lu, Lianhao @ 2010-12-02 10:16 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Hi fellows,

Could anyone tell me why does the cp in do_install() change the file permission mode? Thanks!

do_install () {
	rm -rf ${D}${installed_dir}
	install -d ${D}${installed_dir}
	cp -rp ${S}/* ${D}${installed_dir}
}

After "bitbake xxx -c install", I found the file under ${D}${installed_dir} had the permission mode of 0744 while the corresponding file under directory ${S} had the mode of 0644. Why did this happen? How to avoid this kind of mode change? Thanks!

Best Regards
-Lianhao Lu


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-10 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 10:16 why cp in do_install() change file permission mode? Lu, Lianhao
2010-12-02 13:55 ` Bruce Ashfield
2010-12-02 17:13 ` Hatle, Mark
2010-12-10 16:20 ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.