Skip to content

Commit 156d6f8

Browse files
authored
Merge pull request #42 from HarithaIBM/main
Handle the file tagging feature of the encrypted & signed files
2 parents 828cecf + 9f67c82 commit 156d6f8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

patches/openfile.c.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
diff --git a/g10/openfile.c b/g10/openfile.c
2+
index 42d4708..59bd41a 100644
3+
--- a/g10/openfile.c
4+
+++ b/g10/openfile.c
5+
@@ -183,7 +183,6 @@ open_outfile (gnupg_fd_t out_fd, const char *iname, int mode,
6+
int restrictedperm, iobuf_t *a)
7+
{
8+
int rc = 0;
9+
-
10+
*a = NULL;
11+
if (out_fd != GNUPG_INVALID_FD)
12+
{
13+
@@ -263,7 +262,6 @@ open_outfile (gnupg_fd_t out_fd, const char *iname, int mode,
14+
}
15+
name = buf;
16+
}
17+
-
18+
rc = 0;
19+
while ( !overwrite_filep (name) )
20+
{
21+
@@ -299,8 +297,15 @@ open_outfile (gnupg_fd_t out_fd, const char *iname, int mode,
22+
}
23+
24+
if (*a)
25+
+ {
26+
+#ifdef __MVS__
27+
+ if ((mode == 0 && restrictedperm != 1) || mode == 2) {
28+
+ int fd = iobuf_get_fd(*a);
29+
+ __setfdbinary(fd);
30+
+ }
31+
+#endif
32+
iobuf_ioctl (*a, IOBUF_IOCTL_NO_CACHE, 1, NULL);
33+
-
34+
+ }
35+
return rc;
36+
}
37+

0 commit comments

Comments
 (0)