Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made it compile + fixed setuid handling #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libfriidump/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <sys/time.h>
#include <time.h>

uid_t ruid, euid;
/*** LOGGING STUFF ***/
/* Uses code from the printf man page */
static int my_vasprintf (char **dst, const char *fmt, va_list ap) {
Expand Down
2 changes: 1 addition & 1 deletion libfriidump/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ FRIIDUMPLIB_EXPORT void drop_euid ();
FRIIDUMPLIB_EXPORT void upgrade_euid ();

/* store real and effective uid */
static uid_t ruid, euid;
extern uid_t ruid, euid;
#endif
/******/

Expand Down
1 change: 1 addition & 0 deletions libfriidump/unscrambler.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

// #define unscramblerdebug(...) debug (__VA_ARGS__);
#define unscramblerdebug(...)
u_int8_t disctype;

/*! \brief Size of the seeds cache (Do not touch) */
#define MAX_SEEDS 4
Expand Down
1 change: 0 additions & 1 deletion libfriidump/unscrambler.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ typedef struct unscrambler_s unscrambler;
the progress function the same format we use elsewhere */
typedef void (*unscrambler_progress_func) (bool start, u_int32_t current_sector, u_int32_t total_sectors, void *progress_data);

u_int8_t disctype;

FRIIDUMPLIB_EXPORT unscrambler *unscrambler_new (void);
FRIIDUMPLIB_EXPORT void *unscrambler_destroy (unscrambler *u);
Expand Down