lstat gives us symlinks.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
{
sprintf(str,"%s/%s",dname,de->d_name);
{
sprintf(str,"%s/%s",dname,de->d_name);
printf("%s ino %d length %d mode %X ",de->d_name,(int)s.st_ino,(int)s.st_size,s.st_mode);
switch(s.st_mode & S_IFMT)
printf("%s ino %d length %d mode %X ",de->d_name,(int)s.st_ino,(int)s.st_size,s.st_mode);
switch(s.st_mode & S_IFMT)
dumpDir("/boot");
// Check stat
dumpDir("/boot");
// Check stat
- r = yaffs_stat("/boot/file with a long name",&ystat);
+ r = yaffs_lstat("/boot/file with a long name",&ystat);
- yaffs_stat("/boot/yyfile",&ystat);
+ yaffs_lstat("/boot/yyfile",&ystat);
temp_mode = ystat.st_mode;
yaffs_chmod("/boot/yyfile",0x55555);
temp_mode = ystat.st_mode;
yaffs_chmod("/boot/yyfile",0x55555);
printf("root perms after mount %x\n",s.st_mode);
yaffs_chmod(path, 0777);
printf("root perms after mount %x\n",s.st_mode);
yaffs_chmod(path, 0777);
printf("root perms after setting to 0777 is %x\n",s.st_mode);
yaffs_unmount(path);
printf("root perms after setting to 0777 is %x\n",s.st_mode);
yaffs_unmount(path);