Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sha512toc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
sha512toc
Commits
b270f76e
Commit
b270f76e
authored
6 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Patches
Plain Diff
Corrected --zero-terminated handling
parent
9d65ffb8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sha512toc.c
+1
-10
1 addition, 10 deletions
sha512toc.c
sha512toc.h
+1
-1
1 addition, 1 deletion
sha512toc.h
with
2 additions
and
11 deletions
sha512toc.c
+
1
−
10
View file @
b270f76e
...
@@ -38,15 +38,6 @@
...
@@ -38,15 +38,6 @@
#define XATTR_sha512SUM "trusted.sha512sum.control.lth.se"
#define XATTR_sha512SUM "trusted.sha512sum.control.lth.se"
/*
#define FLAGS_READ_XATTR 0x01
#define FLAGS_WRITE_XATTR 0x02
#define FLAGS_CLEAR_XATTR 0x04
#define FLAGS_MAX_AGE 0x08
#define FLAGS_VERBOSE 0x10
#define FLAGS_NUL_TERMINATED 0x20
*/
struct
options
{
struct
options
{
int
flags
;
int
flags
;
time_t
max_age
;
time_t
max_age
;
...
@@ -319,7 +310,7 @@ int main(int argc, char *argv[])
...
@@ -319,7 +310,7 @@ int main(int argc, char *argv[])
while
(
1
)
{
while
(
1
)
{
int
v
,
i
=
0
;
int
v
,
i
=
0
;
v
=
getopt_long
(
argc
,
argv
,
"hxrwcm:v"
,
long_options
,
&
i
);
v
=
getopt_long
(
argc
,
argv
,
"hxrwcm:v
z
"
,
long_options
,
&
i
);
if
(
v
==
-
1
)
break
;
if
(
v
==
-
1
)
break
;
switch
(
v
)
{
switch
(
v
)
{
case
'h'
:
case
'h'
:
...
...
This diff is collapsed.
Click to expand it.
sha512toc.h
+
1
−
1
View file @
b270f76e
...
@@ -4,7 +4,7 @@ enum {
...
@@ -4,7 +4,7 @@ enum {
FLAGS_CLEAR_XATTR
=
0x0004
,
FLAGS_CLEAR_XATTR
=
0x0004
,
FLAGS_MAX_AGE
=
0x0008
,
FLAGS_MAX_AGE
=
0x0008
,
FLAGS_NO_CALC_HASH
=
0x0010
,
FLAGS_NO_CALC_HASH
=
0x0010
,
FLAGS_NUL_TERMINATED
=
0x
0
0
,
FLAGS_NUL_TERMINATED
=
0x
2
0
,
FLAGS_VERBOSE_MASK
=
0xc000
,
FLAGS_VERBOSE_MASK
=
0xc000
,
FLAGS_VERBOSE0
=
0x0000
,
FLAGS_VERBOSE0
=
0x0000
,
FLAGS_VERBOSE1
=
0x4000
,
FLAGS_VERBOSE1
=
0x4000
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment