0006-fsck.fat-Make-r-option-default.patch 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. From 357ab077198bfa6239fa62fd03a546da959ec756 Mon Sep 17 00:00:00 2001
  2. From: Andreas Bombe <aeb@debian.org>
  3. Date: Thu, 19 Feb 2015 21:22:54 +0100
  4. Subject: [PATCH 06/14] fsck.fat: Make -r option default
  5. Default mode is now to interactively repair with the option to write
  6. the changes back at the end (like the -r option) instead of the previous
  7. default mode of interactively correcting but never writing back the
  8. changes.
  9. The -r option continues to be recognized by fsck.fat.
  10. Signed-off-by: Andreas Bombe <aeb@debian.org>
  11. ---
  12. manpages/de/fsck.fat.de.8 | 6 ++--
  13. manpages/en/fsck.fat.8 | 5 +--
  14. manpages/po/de/fsck.fat.8.po | 76 ++++++++++++++++++++------------------------
  15. manpages/pot/fsck.fat.8.pot | 76 ++++++++++++++++++++------------------------
  16. src/fsck.fat.c | 6 ++--
  17. 5 files changed, 76 insertions(+), 93 deletions(-)
  18. diff --git a/manpages/de/fsck.fat.de.8 b/manpages/de/fsck.fat.de.8
  19. index 1d96e23..f9d70b8 100644
  20. --- a/manpages/de/fsck.fat.de.8
  21. +++ b/manpages/de/fsck.fat.de.8
  22. @@ -123,7 +123,8 @@ anything to the filesystem.
  23. Same as (\fB\-a\fP), for compatibility with other *fsck.
  24. .IP \fB\-r\fP 4
  25. Interactively repair the filesystem. The user is asked for advice whenever
  26. -there is more than one approach to fix an inconsistency.
  27. +there is more than one approach to fix an inconsistency. This is the default
  28. +mode and the option is only retained for backwards compatibility.
  29. .IP \fB\-t\fP 4
  30. Mark unreadable clusters as bad.
  31. .IP \fB\-u\fP 4
  32. @@ -143,9 +144,6 @@ Write changes to disk immediately.
  33. .IP \fB\-y\fP 4
  34. Same as \fB\-a\fP (automatically repair filesystem) for compatibility with other
  35. fsck tools.
  36. -.PP
  37. -\fBNote:\fP If \fB\-a\fP and \fB\-r\fP are absent, the filesystem is only checked, but
  38. -not repaired.
  39. .SH "EXIT STATUS"
  40. .IP 0 4
  41. diff --git a/manpages/en/fsck.fat.8 b/manpages/en/fsck.fat.8
  42. index 3d95dc8..8c54372 100644
  43. --- a/manpages/en/fsck.fat.8
  44. +++ b/manpages/en/fsck.fat.8
  45. @@ -93,8 +93,7 @@ anything to the filesystem.
  46. .IP "\fB\-p\fR" 4
  47. Same as (\fB\-a\fR), for compatibility with other *fsck.
  48. .IP "\fB\-r\fR" 4
  49. -Interactively repair the filesystem. The user is asked for advice whenever
  50. -there is more than one approach to fix an inconsistency.
  51. +Interactively repair the filesystem. The user is asked for advice whenever there is more than one approach to fix an inconsistency. This is the default mode and the option is only retained for backwards compatibility.
  52. .IP "\fB\-t\fR" 4
  53. Mark unreadable clusters as bad.
  54. .IP "\fB\-u\fR" 4
  55. @@ -107,8 +106,6 @@ Perform a verification pass. The filesystem check is repeated after the first ru
  56. Write changes to disk immediately.
  57. .IP "\fB\-y\fR" 4
  58. Same as \fB\-a\fR (automatically repair filesystem) for compatibility with other fsck tools.
  59. -.PP
  60. -\fBNote:\fR If \fB\-a\fR and \fB\-r\fR are absent, the filesystem is only checked, but not repaired.
  61. .SH "EXIT STATUS"
  62. .IP "0" 4
  63. diff --git a/manpages/po/de/fsck.fat.8.po b/manpages/po/de/fsck.fat.8.po
  64. index 3035906..7ca0bc1 100644
  65. --- a/manpages/po/de/fsck.fat.8.po
  66. +++ b/manpages/po/de/fsck.fat.8.po
  67. @@ -3,7 +3,7 @@
  68. msgid ""
  69. msgstr ""
  70. "Project-Id-Version: dosfstools VERSION\n"
  71. -"POT-Creation-Date: 2014-11-12 00:52+0100\n"
  72. +"POT-Creation-Date: 2015-02-20 20:47+0100\n"
  73. "PO-Revision-Date: 2013-06-06 09:34+0300\n"
  74. "Last-Translator: Automatically generated\n"
  75. "Language-Team: none\n"
  76. @@ -56,30 +56,30 @@ msgid "OPTIONS"
  77. msgstr ""
  78. #. type: SH
  79. -#: en/fatlabel.8:41 en/fsck.fat.8:128 en/mkfs.fat.8:78
  80. +#: en/fatlabel.8:41 en/fsck.fat.8:125 en/mkfs.fat.8:78
  81. #, no-wrap
  82. msgid "SEE ALSO"
  83. msgstr ""
  84. #. type: Plain text
  85. -#: en/fatlabel.8:45 en/fsck.fat.8:132
  86. +#: en/fatlabel.8:45 en/fsck.fat.8:129
  87. msgid "B<mkfs.fat>(8)"
  88. msgstr ""
  89. #. type: SH
  90. -#: en/fatlabel.8:46 en/fsck.fat.8:133 en/mkfs.fat.8:83
  91. +#: en/fatlabel.8:46 en/fsck.fat.8:130 en/mkfs.fat.8:83
  92. #, no-wrap
  93. msgid "HOMEPAGE"
  94. msgstr ""
  95. #. type: SH
  96. -#: en/fatlabel.8:49 en/fsck.fat.8:136 en/mkfs.fat.8:86
  97. +#: en/fatlabel.8:49 en/fsck.fat.8:133 en/mkfs.fat.8:86
  98. #, no-wrap
  99. msgid "AUTHORS"
  100. msgstr ""
  101. #. type: Plain text
  102. -#: en/fatlabel.8:50 en/fsck.fat.8:137 en/mkfs.fat.8:87
  103. +#: en/fatlabel.8:50 en/fsck.fat.8:134 en/mkfs.fat.8:87
  104. msgid ""
  105. "B<dosfstools> were written by Werner Almesberger E<lt>I<werner."
  106. "almesberger@lrc.di.epfl.ch>E<gt>, Roman Hodek E<lt>I<Roman.Hodek@informatik."
  107. @@ -365,31 +365,32 @@ msgid "B<-r>"
  108. msgstr ""
  109. #. type: Plain text
  110. -#: en/fsck.fat.8:98
  111. +#: en/fsck.fat.8:97
  112. msgid ""
  113. "Interactively repair the filesystem. The user is asked for advice whenever "
  114. -"there is more than one approach to fix an inconsistency."
  115. +"there is more than one approach to fix an inconsistency. This is the default "
  116. +"mode and the option is only retained for backwards compatibility."
  117. msgstr ""
  118. #. type: IP
  119. -#: en/fsck.fat.8:98
  120. +#: en/fsck.fat.8:97
  121. #, no-wrap
  122. msgid "B<-t>"
  123. msgstr ""
  124. #. type: Plain text
  125. -#: en/fsck.fat.8:100
  126. +#: en/fsck.fat.8:99
  127. msgid "Mark unreadable clusters as bad."
  128. msgstr ""
  129. #. type: IP
  130. -#: en/fsck.fat.8:100
  131. +#: en/fsck.fat.8:99
  132. #, no-wrap
  133. msgid "B<-u>"
  134. msgstr ""
  135. #. type: Plain text
  136. -#: en/fsck.fat.8:102
  137. +#: en/fsck.fat.8:101
  138. msgid ""
  139. "Try to undelete the specified file. B<fsck.fat> tries to allocate a chain of "
  140. "contiguous unallocated clusters beginning with the start cluster of the "
  141. @@ -397,24 +398,24 @@ msgid ""
  142. msgstr ""
  143. #. type: IP
  144. -#: en/fsck.fat.8:102 en/mkfs.fat.8:72
  145. +#: en/fsck.fat.8:101 en/mkfs.fat.8:72
  146. #, no-wrap
  147. msgid "B<-v>"
  148. msgstr ""
  149. #. type: Plain text
  150. -#: en/fsck.fat.8:104
  151. +#: en/fsck.fat.8:103
  152. msgid "Verbose mode. Generates slightly more output."
  153. msgstr ""
  154. #. type: IP
  155. -#: en/fsck.fat.8:104
  156. +#: en/fsck.fat.8:103
  157. #, no-wrap
  158. msgid "B<-V>"
  159. msgstr ""
  160. #. type: Plain text
  161. -#: en/fsck.fat.8:106
  162. +#: en/fsck.fat.8:105
  163. msgid ""
  164. "Perform a verification pass. The filesystem check is repeated after the "
  165. "first run. The second pass should never report any fixable errors. It may "
  166. @@ -424,91 +425,84 @@ msgid ""
  167. msgstr ""
  168. #. type: IP
  169. -#: en/fsck.fat.8:106
  170. +#: en/fsck.fat.8:105
  171. #, no-wrap
  172. msgid "B<-w>"
  173. msgstr ""
  174. #. type: Plain text
  175. -#: en/fsck.fat.8:108
  176. +#: en/fsck.fat.8:107
  177. msgid "Write changes to disk immediately."
  178. msgstr ""
  179. #. type: IP
  180. -#: en/fsck.fat.8:108
  181. +#: en/fsck.fat.8:107
  182. #, no-wrap
  183. msgid "B<-y>"
  184. msgstr ""
  185. #. type: Plain text
  186. -#: en/fsck.fat.8:110
  187. +#: en/fsck.fat.8:109
  188. msgid ""
  189. "Same as B<-a> (automatically repair filesystem) for compatibility with other "
  190. "fsck tools."
  191. msgstr ""
  192. -#. type: Plain text
  193. -#: en/fsck.fat.8:112
  194. -msgid ""
  195. -"B<Note:> If B<-a> and B<-r> are absent, the filesystem is only checked, but "
  196. -"not repaired."
  197. -msgstr ""
  198. -
  199. #. type: SH
  200. -#: en/fsck.fat.8:113
  201. +#: en/fsck.fat.8:110
  202. #, no-wrap
  203. msgid "EXIT STATUS"
  204. msgstr ""
  205. #. type: IP
  206. -#: en/fsck.fat.8:114
  207. +#: en/fsck.fat.8:111
  208. #, no-wrap
  209. msgid "0"
  210. msgstr ""
  211. #. type: Plain text
  212. -#: en/fsck.fat.8:116
  213. +#: en/fsck.fat.8:113
  214. msgid "No recoverable errors have been detected."
  215. msgstr ""
  216. #. type: IP
  217. -#: en/fsck.fat.8:116
  218. +#: en/fsck.fat.8:113
  219. #, no-wrap
  220. msgid "1"
  221. msgstr ""
  222. #. type: Plain text
  223. -#: en/fsck.fat.8:118
  224. +#: en/fsck.fat.8:115
  225. msgid ""
  226. "Recoverable errors have been detected or B<fsck.fat> has discovered an "
  227. "internal inconsistency."
  228. msgstr ""
  229. #. type: IP
  230. -#: en/fsck.fat.8:118
  231. +#: en/fsck.fat.8:115
  232. #, no-wrap
  233. msgid "2"
  234. msgstr ""
  235. #. type: Plain text
  236. -#: en/fsck.fat.8:120
  237. +#: en/fsck.fat.8:117
  238. msgid "Usage error. B<fsck.fat> did not access the filesystem."
  239. msgstr ""
  240. #. type: SH
  241. -#: en/fsck.fat.8:121
  242. +#: en/fsck.fat.8:118
  243. #, no-wrap
  244. msgid "FILES"
  245. msgstr ""
  246. #. type: IP
  247. -#: en/fsck.fat.8:122
  248. +#: en/fsck.fat.8:119
  249. #, no-wrap
  250. msgid "fsck0000.rec, fsck0001.rec, ..."
  251. msgstr ""
  252. #. type: Plain text
  253. -#: en/fsck.fat.8:124
  254. +#: en/fsck.fat.8:121
  255. msgid ""
  256. "When recovering from a corrupted filesystem, B<fsck.fat> dumps recovered "
  257. "data into files named 'fsckNNNN.rec' in the top level directory of the "
  258. @@ -516,13 +510,13 @@ msgid ""
  259. msgstr ""
  260. #. type: SH
  261. -#: en/fsck.fat.8:125 en/mkfs.fat.8:75
  262. +#: en/fsck.fat.8:122 en/mkfs.fat.8:75
  263. #, no-wrap
  264. msgid "BUGS"
  265. msgstr ""
  266. #. type: Plain text
  267. -#: en/fsck.fat.8:127
  268. +#: en/fsck.fat.8:124
  269. msgid ""
  270. "Does not create . and .. files where necessary. Does not remove entirely "
  271. "empty directories. Should give more diagnostic messages. Undeleting files "
  272. @@ -530,12 +524,12 @@ msgid ""
  273. msgstr ""
  274. #. type: Plain text
  275. -#: en/fsck.fat.8:130 en/mkfs.fat.8:80
  276. +#: en/fsck.fat.8:127 en/mkfs.fat.8:80
  277. msgid "B<fatlabel>(8)"
  278. msgstr ""
  279. #. type: Plain text
  280. -#: en/fsck.fat.8:135 en/mkfs.fat.8:85
  281. +#: en/fsck.fat.8:132 en/mkfs.fat.8:85
  282. msgid ""
  283. "More information about B<fsck.fat> and B<dosfstools> can be found at "
  284. "E<lt>I<http://daniel-baumann.ch/software/dosfstools/>E<gt>."
  285. diff --git a/manpages/pot/fsck.fat.8.pot b/manpages/pot/fsck.fat.8.pot
  286. index e411819..f5ca313 100644
  287. --- a/manpages/pot/fsck.fat.8.pot
  288. +++ b/manpages/pot/fsck.fat.8.pot
  289. @@ -7,7 +7,7 @@
  290. msgid ""
  291. msgstr ""
  292. "Project-Id-Version: dosfstools VERSION\n"
  293. -"POT-Creation-Date: 2014-11-12 00:52+0100\n"
  294. +"POT-Creation-Date: 2015-02-20 20:47+0100\n"
  295. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  296. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  297. "Language-Team: LANGUAGE <LL@li.org>\n"
  298. @@ -59,30 +59,30 @@ msgid "OPTIONS"
  299. msgstr ""
  300. #. type: SH
  301. -#: en/fatlabel.8:41 en/fsck.fat.8:128 en/mkfs.fat.8:78
  302. +#: en/fatlabel.8:41 en/fsck.fat.8:125 en/mkfs.fat.8:78
  303. #, no-wrap
  304. msgid "SEE ALSO"
  305. msgstr ""
  306. #. type: Plain text
  307. -#: en/fatlabel.8:45 en/fsck.fat.8:132
  308. +#: en/fatlabel.8:45 en/fsck.fat.8:129
  309. msgid "B<mkfs.fat>(8)"
  310. msgstr ""
  311. #. type: SH
  312. -#: en/fatlabel.8:46 en/fsck.fat.8:133 en/mkfs.fat.8:83
  313. +#: en/fatlabel.8:46 en/fsck.fat.8:130 en/mkfs.fat.8:83
  314. #, no-wrap
  315. msgid "HOMEPAGE"
  316. msgstr ""
  317. #. type: SH
  318. -#: en/fatlabel.8:49 en/fsck.fat.8:136 en/mkfs.fat.8:86
  319. +#: en/fatlabel.8:49 en/fsck.fat.8:133 en/mkfs.fat.8:86
  320. #, no-wrap
  321. msgid "AUTHORS"
  322. msgstr ""
  323. #. type: Plain text
  324. -#: en/fatlabel.8:50 en/fsck.fat.8:137 en/mkfs.fat.8:87
  325. +#: en/fatlabel.8:50 en/fsck.fat.8:134 en/mkfs.fat.8:87
  326. msgid ""
  327. "B<dosfstools> were written by Werner Almesberger E<lt>I<werner."
  328. "almesberger@lrc.di.epfl.ch>E<gt>, Roman Hodek E<lt>I<Roman.Hodek@informatik."
  329. @@ -368,31 +368,32 @@ msgid "B<-r>"
  330. msgstr ""
  331. #. type: Plain text
  332. -#: en/fsck.fat.8:98
  333. +#: en/fsck.fat.8:97
  334. msgid ""
  335. "Interactively repair the filesystem. The user is asked for advice whenever "
  336. -"there is more than one approach to fix an inconsistency."
  337. +"there is more than one approach to fix an inconsistency. This is the default "
  338. +"mode and the option is only retained for backwards compatibility."
  339. msgstr ""
  340. #. type: IP
  341. -#: en/fsck.fat.8:98
  342. +#: en/fsck.fat.8:97
  343. #, no-wrap
  344. msgid "B<-t>"
  345. msgstr ""
  346. #. type: Plain text
  347. -#: en/fsck.fat.8:100
  348. +#: en/fsck.fat.8:99
  349. msgid "Mark unreadable clusters as bad."
  350. msgstr ""
  351. #. type: IP
  352. -#: en/fsck.fat.8:100
  353. +#: en/fsck.fat.8:99
  354. #, no-wrap
  355. msgid "B<-u>"
  356. msgstr ""
  357. #. type: Plain text
  358. -#: en/fsck.fat.8:102
  359. +#: en/fsck.fat.8:101
  360. msgid ""
  361. "Try to undelete the specified file. B<fsck.fat> tries to allocate a chain of "
  362. "contiguous unallocated clusters beginning with the start cluster of the "
  363. @@ -400,24 +401,24 @@ msgid ""
  364. msgstr ""
  365. #. type: IP
  366. -#: en/fsck.fat.8:102 en/mkfs.fat.8:72
  367. +#: en/fsck.fat.8:101 en/mkfs.fat.8:72
  368. #, no-wrap
  369. msgid "B<-v>"
  370. msgstr ""
  371. #. type: Plain text
  372. -#: en/fsck.fat.8:104
  373. +#: en/fsck.fat.8:103
  374. msgid "Verbose mode. Generates slightly more output."
  375. msgstr ""
  376. #. type: IP
  377. -#: en/fsck.fat.8:104
  378. +#: en/fsck.fat.8:103
  379. #, no-wrap
  380. msgid "B<-V>"
  381. msgstr ""
  382. #. type: Plain text
  383. -#: en/fsck.fat.8:106
  384. +#: en/fsck.fat.8:105
  385. msgid ""
  386. "Perform a verification pass. The filesystem check is repeated after the "
  387. "first run. The second pass should never report any fixable errors. It may "
  388. @@ -427,91 +428,84 @@ msgid ""
  389. msgstr ""
  390. #. type: IP
  391. -#: en/fsck.fat.8:106
  392. +#: en/fsck.fat.8:105
  393. #, no-wrap
  394. msgid "B<-w>"
  395. msgstr ""
  396. #. type: Plain text
  397. -#: en/fsck.fat.8:108
  398. +#: en/fsck.fat.8:107
  399. msgid "Write changes to disk immediately."
  400. msgstr ""
  401. #. type: IP
  402. -#: en/fsck.fat.8:108
  403. +#: en/fsck.fat.8:107
  404. #, no-wrap
  405. msgid "B<-y>"
  406. msgstr ""
  407. #. type: Plain text
  408. -#: en/fsck.fat.8:110
  409. +#: en/fsck.fat.8:109
  410. msgid ""
  411. "Same as B<-a> (automatically repair filesystem) for compatibility with other "
  412. "fsck tools."
  413. msgstr ""
  414. -#. type: Plain text
  415. -#: en/fsck.fat.8:112
  416. -msgid ""
  417. -"B<Note:> If B<-a> and B<-r> are absent, the filesystem is only checked, but "
  418. -"not repaired."
  419. -msgstr ""
  420. -
  421. #. type: SH
  422. -#: en/fsck.fat.8:113
  423. +#: en/fsck.fat.8:110
  424. #, no-wrap
  425. msgid "EXIT STATUS"
  426. msgstr ""
  427. #. type: IP
  428. -#: en/fsck.fat.8:114
  429. +#: en/fsck.fat.8:111
  430. #, no-wrap
  431. msgid "0"
  432. msgstr ""
  433. #. type: Plain text
  434. -#: en/fsck.fat.8:116
  435. +#: en/fsck.fat.8:113
  436. msgid "No recoverable errors have been detected."
  437. msgstr ""
  438. #. type: IP
  439. -#: en/fsck.fat.8:116
  440. +#: en/fsck.fat.8:113
  441. #, no-wrap
  442. msgid "1"
  443. msgstr ""
  444. #. type: Plain text
  445. -#: en/fsck.fat.8:118
  446. +#: en/fsck.fat.8:115
  447. msgid ""
  448. "Recoverable errors have been detected or B<fsck.fat> has discovered an "
  449. "internal inconsistency."
  450. msgstr ""
  451. #. type: IP
  452. -#: en/fsck.fat.8:118
  453. +#: en/fsck.fat.8:115
  454. #, no-wrap
  455. msgid "2"
  456. msgstr ""
  457. #. type: Plain text
  458. -#: en/fsck.fat.8:120
  459. +#: en/fsck.fat.8:117
  460. msgid "Usage error. B<fsck.fat> did not access the filesystem."
  461. msgstr ""
  462. #. type: SH
  463. -#: en/fsck.fat.8:121
  464. +#: en/fsck.fat.8:118
  465. #, no-wrap
  466. msgid "FILES"
  467. msgstr ""
  468. #. type: IP
  469. -#: en/fsck.fat.8:122
  470. +#: en/fsck.fat.8:119
  471. #, no-wrap
  472. msgid "fsck0000.rec, fsck0001.rec, ..."
  473. msgstr ""
  474. #. type: Plain text
  475. -#: en/fsck.fat.8:124
  476. +#: en/fsck.fat.8:121
  477. msgid ""
  478. "When recovering from a corrupted filesystem, B<fsck.fat> dumps recovered "
  479. "data into files named 'fsckNNNN.rec' in the top level directory of the "
  480. @@ -519,13 +513,13 @@ msgid ""
  481. msgstr ""
  482. #. type: SH
  483. -#: en/fsck.fat.8:125 en/mkfs.fat.8:75
  484. +#: en/fsck.fat.8:122 en/mkfs.fat.8:75
  485. #, no-wrap
  486. msgid "BUGS"
  487. msgstr ""
  488. #. type: Plain text
  489. -#: en/fsck.fat.8:127
  490. +#: en/fsck.fat.8:124
  491. msgid ""
  492. "Does not create . and .. files where necessary. Does not remove entirely "
  493. "empty directories. Should give more diagnostic messages. Undeleting files "
  494. @@ -533,12 +527,12 @@ msgid ""
  495. msgstr ""
  496. #. type: Plain text
  497. -#: en/fsck.fat.8:130 en/mkfs.fat.8:80
  498. +#: en/fsck.fat.8:127 en/mkfs.fat.8:80
  499. msgid "B<fatlabel>(8)"
  500. msgstr ""
  501. #. type: Plain text
  502. -#: en/fsck.fat.8:135 en/mkfs.fat.8:85
  503. +#: en/fsck.fat.8:132 en/mkfs.fat.8:85
  504. msgid ""
  505. "More information about B<fsck.fat> and B<dosfstools> can be found at "
  506. "E<lt>I<http://daniel-baumann.ch/software/dosfstools/>E<gt>."
  507. diff --git a/src/fsck.fat.c b/src/fsck.fat.c
  508. index c073d9a..6c7fd87 100644
  509. --- a/src/fsck.fat.c
  510. +++ b/src/fsck.fat.c
  511. @@ -108,8 +108,8 @@ int main(int argc, char **argv)
  512. uint32_t free_clusters = 0;
  513. memset(&fs, 0, sizeof(fs));
  514. - rw = salvage_files = verify = 0;
  515. - interactive = 1;
  516. + salvage_files = verify = 0;
  517. + rw = interactive = 1;
  518. check_atari();
  519. while ((c = getopt(argc, argv, "Aac:d:bflnprtu:vVwy")) != EOF)
  520. @@ -169,7 +169,7 @@ int main(int argc, char **argv)
  521. }
  522. set_dos_codepage(-1); /* set default codepage if none was given in command line */
  523. if ((test || write_immed) && !rw) {
  524. - fprintf(stderr, "-t and -w require -a or -r\n");
  525. + fprintf(stderr, "-t and -w can not be used in read only mode\n");
  526. exit(2);
  527. }
  528. if (optind != argc - 1)
  529. --
  530. 1.9.1