We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4763fa5 commit 13444acCopy full SHA for 13444ac
src/hdapsd.c
@@ -841,7 +841,7 @@ int main (int argc, char** argv)
841
/* check the protect attribute exists */
842
/* wait for it if it's not there (in case the attribute hasn't been created yet) */
843
p = disklist;
844
- while (p != NULL) {
+ while (p != NULL && !dry_run) {
845
fd = open (p->protect_file, O_RDWR);
846
if (background)
847
for (i = 0; fd < 0 && i < 100; ++i) {
0 commit comments