Skip to content

Commit a078fb4

Browse files
openharmony_cigitee-org
openharmony_ci
authored andcommitted
!203 适配shred
Merge pull request !203 from guopengfei/master
2 parents 75a24af + 1576124 commit a078fb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

toys/other/shred.c

+4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ void shred_main(void)
4848

4949
// do -f chmod if necessary
5050
if (fd==-1&&FLAG(f)) {
51+
#ifdefTOYBOX_OH_ADAPT
52+
chmod(*try, 0660);
53+
#else
5154
chmod(*try, 0600);
55+
#endif
5256
fd=open(*try, O_RDWR);
5357
}
5458
if (fd==-1) {

0 commit comments

Comments
 (0)
close