Changeset 248 for trunk/src/sh_gpg.c
- Timestamp:
- Sep 21, 2009, 8:23:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_gpg.c
r247 r248 270 270 char pname[128]; 271 271 int pfd; 272 int val_return; 272 273 #endif 273 274 #endif … … 534 535 */ 535 536 #if defined(WITH_PGP) 536 checkfd = sl_open_read( DEFAULT_PGP_PATH, SL_NOPRIV);537 #else 538 checkfd = sl_open_read( DEFAULT_GPG_PATH, SL_NOPRIV);537 checkfd = sl_open_read(FIL__, __LINE__, DEFAULT_PGP_PATH, SL_NOPRIV); 538 #else 539 checkfd = sl_open_read(FIL__, __LINE__, DEFAULT_GPG_PATH, SL_NOPRIV); 539 540 #endif 540 541 541 542 if (0 != sh_gpg_checksum(checkfd, 0)) 542 aud__exit(FIL__, __LINE__, EXIT_FAILURE); 543 { 544 sl_close(checkfd); 545 aud__exit(FIL__, __LINE__, EXIT_FAILURE); 546 } 543 547 544 548 pfd = get_the_fd(checkfd); 549 do { 550 val_return = dup (pfd); 551 } while (val_return < 0 && errno == EINTR); 552 pfd = val_return; 553 sl_close(checkfd); 554 checkfd = -1; 555 545 556 sl_snprintf(pname, sizeof(pname), _("/proc/self/fd/%d"), pfd); 546 557 if (0 == access(pname, R_OK|X_OK)) /* flawfinder: ignore */ … … 559 570 /* procfs not working, go ahead 560 571 */ 561 sl_close(checkfd);562 checkfd = -1;563 572 #endif 564 573 … … 576 585 { 577 586 #if defined(WITH_PGP) 578 checkfd = sl_open_fastread( DEFAULT_PGP_PATH, SL_NOPRIV);579 #else 580 checkfd = sl_open_fastread( DEFAULT_GPG_PATH, SL_NOPRIV);587 checkfd = sl_open_fastread(FIL__, __LINE__, DEFAULT_PGP_PATH, SL_NOPRIV); 588 #else 589 checkfd = sl_open_fastread(FIL__, __LINE__, DEFAULT_GPG_PATH, SL_NOPRIV); 581 590 #endif 582 591 if (0 != sh_gpg_checksum(checkfd, 0)) { … … 685 694 686 695 #ifdef HAVE_GPG_CHECKSUM 687 checkfd = sl_open_read( DEFAULT_GPG_PATH, SL_YESPRIV);696 checkfd = sl_open_read(FIL__, __LINE__, DEFAULT_GPG_PATH, SL_YESPRIV); 688 697 689 698 if (0 != sh_gpg_checksum(checkfd, 1)) … … 716 725 717 726 #ifdef HAVE_GPG_CHECKSUM 718 checkfd = sl_open_read( DEFAULT_PGP_PATH, SL_YESPRIV);727 checkfd = sl_open_read(FIL__, __LINE__, DEFAULT_PGP_PATH, SL_YESPRIV); 719 728 720 729 if (0 != sh_gpg_checksum(checkfd, 1))
Note:
See TracChangeset
for help on using the changeset viewer.