<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns=3D"http://www.w3.org/1999/xhtml"> <head><style type=3D"text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: = #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:':';} #msg dl, #msg dt, #msg ul, #msg li { font-family: verdana,arial,helvetica= ,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; fo= nt-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padd= ing: 6px; } #msg ul, pre { overflow: auto; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt= ;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:aut= o;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patc= h .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 = 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 = 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[289] kos/kernel/arch/dreamcast/fs/fs_iso9660.c: KOS: fs_iso9660: = fill in dirent.attr for directories, and apply Christian Grossler's patch= for opening correct filenames</title> </head> <body> <div id=3D"msg"> <dl> <dt>Revision</dt> <dd>289</dd> <dt>Author</dt> <dd>sam.steele</dd> <dt>Date</dt> <dd>2005-12-18 12:04:08 -0800 (Sun, 18 Dec 2005)</dd> </dl> <h3>Log Message</h3> <pre>KOS: fs_iso9660: fill in dirent.attr for directories, and apply Chri= stian Grossler's patch for opening correct filenames</pre> <h3>Modified Paths</h3> <ul> <li><a href=3D"#koskernelarchdreamcastfsfs_iso9660c">kos/kernel/arch/drea= mcast/fs/fs_iso9660.c</a></li> </ul> </div> <div id=3D"patch"> <h3>Diff</h3> <a id=3D"koskernelarchdreamcastfsfs_iso9660c"></a> <div class=3D"modfile"><h4>Modified: kos/kernel/arch/dreamcast/fs/fs_iso9= 660.c (288 =3D> 289)</h4> <pre class=3D"diff"> <span class=3D"info">--- kos/kernel/arch/dreamcast/fs/fs_iso9660.c 2005-1= 2-18 20:00:05 UTC (rev 288) +++ kos/kernel/arch/dreamcast/fs/fs_iso9660.c 2005-12-18 20:04:08 UTC (re= v 289) </span><span class=3D"lines">@@ -455,7 +455,7 @@ </span><span class=3D"cx"> else </span><span class=3D"cx"> fnlen =3D strlen(fn); </span><span class=3D"cx"> =09 </span><del>- if (!strnicmp(rrname, fn, fnlen)) { </del><ins>+ if (!strnicmp(rrname, fn, fnlen) && ! *(rrname += fnlen)) { </ins><span class=3D"cx"> if (!((dir << 1) ^ de->flags)) </span><span class=3D"cx"> return de; </span><span class=3D"cx"> } </span><span class=3D"lines">@@ -793,11 +793,14 @@ </span><span class=3D"cx"> } </span><span class=3D"cx"> } </span><span class=3D"cx">=20 </span><del>- if (de->flags & 2) </del><ins>+ if (de->flags & 2) { </ins><span class=3D"cx"> fh[fd].dirent.size =3D -1; </span><del>- else </del><ins>+ fh[fd].dirent.attr =3D O_DIR; + } else { </ins><span class=3D"cx"> fh[fd].dirent.size =3D iso_733(de->size); </span><del>-=09 </del><ins>+ fh[fd].dirent.attr =3D 0; + } + </ins><span class=3D"cx"> fh[fd].ptr +=3D de->length; </span><span class=3D"cx"> =09 </span><span class=3D"cx"> return &fh[fd].dirent; </span></pre> </div> </div> </body> </html> |