Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
4fdb46f5
Commit
4fdb46f5
authored
2 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
remove useless function
parent
f3c59c89
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib66/utils/deps-lib/deps
+1
-5
1 addition, 5 deletions
src/lib66/utils/deps-lib/deps
src/lib66/utils/sa_pointo.c
+0
-71
0 additions, 71 deletions
src/lib66/utils/sa_pointo.c
with
1 addition
and
76 deletions
src/lib66/utils/deps-lib/deps
+
1
−
5
View file @
4fdb46f5
create_live.o
get_userhome.o
module_in_cmdline.o
module_path.o
module_search_service.o
name_isvalid.o
read_svfile.o
sa_pointo.o
scandir_ok.o
scandir_send_signal.o
set_livedir.o
set_livescan.o
set_livestate.o
set_livetree.o
set_ownerhome.o
set_ownersysdir.o
yourgid.o
...
...
This diff is collapsed.
Click to expand it.
src/lib66/utils/sa_pointo.c
deleted
100644 → 0
+
0
−
71
View file @
f3c59c89
/*
* sa_pointo.c
*
* Copyright (c) 2018-2021 Eric Vidal <eric@obarun.org>
*
* All rights reserved.
*
* This file is part of Obarun. It is subject to the license terms in
* the LICENSE file found in the top-level directory of this
* distribution.
* This file may not be copied, modified, propagated, or distributed
* except according to the terms contained in the LICENSE file./
*/
#include
<oblibs/log.h>
#include
<oblibs/string.h>
#include
<skalibs/stralloc.h>
#include
<skalibs/types.h>
#include
<66/ssexec.h>
#include
<66/constants.h>
#include
<66/utils.h>
int
sa_pointo
(
stralloc
*
sa
,
ssexec_t
*
info
,
int
type
,
unsigned
int
where
)
{
log_flow
()
;
sa
->
len
=
0
;
char
ownerstr
[
UID_FMT
]
;
size_t
ownerlen
=
uid_fmt
(
ownerstr
,
info
->
owner
)
;
ownerstr
[
ownerlen
]
=
0
;
if
(
where
==
SS_RESOLVE_STATE
)
{
if
(
!
auto_stra
(
sa
,
info
->
live
.
s
,
SS_STATE
+
1
,
"/"
,
ownerstr
,
"/"
,
info
->
treename
.
s
))
goto
err
;
}
else
if
(
where
==
SS_RESOLVE_SRC
)
{
if
(
!
auto_stra
(
sa
,
info
->
tree
.
s
,
SS_SVDIRS
))
goto
err
;
}
else
if
(
where
==
SS_RESOLVE_BACK
)
{
if
(
!
auto_stra
(
sa
,
info
->
base
.
s
,
SS_SYSTEM
,
SS_BACKUP
,
"/"
,
info
->
treename
.
s
))
goto
err
;
}
else
if
(
where
==
SS_RESOLVE_LIVE
)
{
if
(
!
auto_stra
(
sa
,
info
->
live
.
s
,
SS_STATE
+
1
,
"/"
,
ownerstr
,
"/"
,
info
->
treename
.
s
,
SS_SVDIRS
))
goto
err
;
}
if
(
type
>=
0
&&
where
)
{
if
(
type
==
TYPE_CLASSIC
)
{
if
(
!
auto_stra
(
sa
,
SS_SVC
))
goto
err
;
}
else
if
(
!
auto_stra
(
sa
,
SS_DB
))
goto
err
;
}
return
1
;
err:
return
0
;
}
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