summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-25 12:23:22 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-25 12:23:22 +0800
commit63b85dabef94f44304c66661a0554a64b2e01a42 (patch)
tree19302f1e2e5d1385189cee61253b07bd7b644c1c
parent2596725441bb9a88d42ba1a0d10c22e7cce1d885 (diff)
downloadpttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.tar
pttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.tar.gz
pttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.tar.bz2
pttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.tar.lz
pttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.tar.xz
pttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.tar.zst
pttbbs-63b85dabef94f44304c66661a0554a64b2e01a42.zip
Typo for marked files.
Touch timestamp/rebuild for board/man git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4323 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/trans/sob_trans.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/pttbbs/trans/sob_trans.c b/pttbbs/trans/sob_trans.c
index bc92c095..35cffbc7 100644
--- a/pttbbs/trans/sob_trans.c
+++ b/pttbbs/trans/sob_trans.c
@@ -42,7 +42,7 @@ int convert(const char *oldpath, char *newpath)
fhdr.modified = dasht(buf);
if (whdr.filemode & SOB_FILE_MARKED)
- fhdr.filemode | FILE_MARKED;
+ fhdr.filemode |= FILE_MARKED;
copy_file(buf, newpath);
}
@@ -95,6 +95,14 @@ int main(int argc, char *argv[])
return 0;
}
+ attach_SHM();
+ opt = getbnum(board);
+
+ if (opt == 0) {
+ fprintf(stderr, "ERR: board `%s' not found\n", board);
+ return 0;
+ }
+
if (trans_man)
setapath(buf, board);
else
@@ -105,9 +113,15 @@ int main(int argc, char *argv[])
return 0;
}
- attach_SHM();
-
convert(path, buf);
+ if (trans_man) {
+ strlcat(buf, "/.rebuild", sizeof(buf));
+ if ((opt = open(buf, O_CREAT, 0640)) > 0)
+ close(opt);
+ }
+ else
+ touchbtotal(opt);
+
return 0;
}