This ensures that makedevs will not cause image creation failures
when it encounters a pipe (fifo) that exists from a previous image.
This handles mode changes and it will correctly fail for dangling
symlinks.
[YOCTO #5288]
Signed-off-by: Saul Wold s...@linux.intel.com
makedev
Signed-off-by:
On Tue, 2013-10-01 at 12:15 -0700, Saul Wold wrote:
+ int status;
+ struct stat sb;
+
+ memset(sb, 0, sizeof(struct stat));
+ status = stat(path, sb);
Don't you want lstat() there? Also, I think *stat() is guaranteed to
fill in all of sb if it returns anything other than an
On 10/01/2013 12:49 PM, Phil Blundell wrote:
On Tue, 2013-10-01 at 12:15 -0700, Saul Wold wrote:
+ int status;
+ struct stat sb;
+
+ memset(sb, 0, sizeof(struct stat));
+ status = stat(path, sb);
Don't you want lstat() there? Also, I think *stat() is guaranteed to
On Tue, 2013-10-01 at 12:58 -0700, Saul Wold wrote:
On 10/01/2013 12:49 PM, Phil Blundell wrote:
On Tue, 2013-10-01 at 12:15 -0700, Saul Wold wrote:
+ int status;
+ struct stat sb;
+
+ memset(sb, 0, sizeof(struct stat));
+ status = stat(path, sb);
Don't you want lstat() there?
On 10/01/2013 01:07 PM, Phil Blundell wrote:
On Tue, 2013-10-01 at 12:58 -0700, Saul Wold wrote:
On 10/01/2013 12:49 PM, Phil Blundell wrote:
On Tue, 2013-10-01 at 12:15 -0700, Saul Wold wrote:
+ int status;
+ struct stat sb;
+
+ memset(sb, 0, sizeof(struct stat));
+